Cosmetic
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Thu, 11 Apr 2013 15:55:01 +0000 (11:55 -0400)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Thu, 11 Apr 2013 15:55:01 +0000 (11:55 -0400)
src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2Session.java

index 4d8f8c2..48aa236 100644 (file)
@@ -441,7 +441,9 @@ public class Pz2Session implements Pz2Interface {
   }\r
   \r
   protected void removeCommand (String commandName) {\r
-    stateManager.checkIn(new Pazpar2Command(commandName));\r
+    Pazpar2Command command = getCommand(commandName);\r
+    command.removeParameters();\r
+    stateManager.checkIn(command);\r
   }\r
     \r
   protected String getCommandParameterValue (String commandName, String parameterName, String defaultValue) {    \r