From a81f30fcf2c5f425fa9de23d0e4eece3694b16f4 Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Thu, 11 Apr 2013 11:55:01 -0400 Subject: [PATCH] Cosmetic --- src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2Session.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2Session.java b/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2Session.java index 4d8f8c2..48aa236 100644 --- a/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2Session.java +++ b/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2Session.java @@ -441,7 +441,9 @@ public class Pz2Session implements Pz2Interface { } protected void removeCommand (String commandName) { - stateManager.checkIn(new Pazpar2Command(commandName)); + Pazpar2Command command = getCommand(commandName); + command.removeParameters(); + stateManager.checkIn(command); } protected String getCommandParameterValue (String commandName, String parameterName, String defaultValue) { -- 1.7.10.4