From: Niels Erik G. Nielsen Date: Wed, 12 Jun 2013 00:55:30 +0000 (-0400) Subject: Fixes bug in state mutation in record command X-Git-Tag: v0.0.7~42^2~2 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=b31cb1a9589fc04252c5bbfa11a0f6093f2f8ec6;p=mkjsf-moved-to-github.git Fixes bug in state mutation in record command --- diff --git a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/RecordCommand.java b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/RecordCommand.java index 8cc039d..8991dde 100644 --- a/src/main/java/com/indexdata/mkjsf/pazpar2/commands/RecordCommand.java +++ b/src/main/java/com/indexdata/mkjsf/pazpar2/commands/RecordCommand.java @@ -177,7 +177,7 @@ public class RecordCommand extends Pazpar2Command implements ServiceProxyCommand for (String parameterName : parameters.keySet()) { newCommand.setParameterInState(parameters.get(parameterName).copy()); } - newCommand.spCommand = this.spCommand; + newCommand.spCommand = new RecordCommandSp(newCommand); return newCommand; }