From: rkv Date: Thu, 18 Apr 2013 05:37:49 +0000 (+0000) Subject: Fix of wrong search results after logout. X-Git-Tag: Root_Delivery2_2013_04_22~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=285d6ede657df4c887920757f5986448afab4796;p=tools%2Fsiman.git Fix of wrong search results after logout. --- diff --git a/Workspace/Siman/src/org/splat/simer/AbstractSearchBaseAction.java b/Workspace/Siman/src/org/splat/simer/AbstractSearchBaseAction.java index a2c12dc..0ddb11e 100644 --- a/Workspace/Siman/src/org/splat/simer/AbstractSearchBaseAction.java +++ b/Workspace/Siman/src/org/splat/simer/AbstractSearchBaseAction.java @@ -24,6 +24,8 @@ import org.splat.wapp.Constants; /** * Base search action class used for searching studies and knowledge. * + * @param + * search filter class * @author Roman Kozlov (RKV) */ public abstract class AbstractSearchBaseAction diff --git a/Workspace/Siman/src/org/splat/simer/ConnectionAction.java b/Workspace/Siman/src/org/splat/simer/ConnectionAction.java index 484e354..4970e14 100644 --- a/Workspace/Siman/src/org/splat/simer/ConnectionAction.java +++ b/Workspace/Siman/src/org/splat/simer/ConnectionAction.java @@ -108,6 +108,7 @@ public class ConnectionAction extends Action { if (logged.canContributeToStudy() || logged.canValidate()) { // TODO: Set the search filter according to user preferences Map session = getSession(); + session.remove(AbstractSearchBaseAction.RESULT_KEY); // The current result is obsolete // Map kfilter = (Map)session.get("knowledge.filter"); Map sfilter = (Map) session .get("study.filter"); @@ -152,6 +153,7 @@ public class ConnectionAction extends Action { try { Map session = getSession(); // Map kfilter = (Map)session.get("knowledge.filter"); + session.remove(AbstractSearchBaseAction.RESULT_KEY); // The current result is obsolete Map sfilter = (Map) session .get("study.filter"); LoginContext context = (LoginContext) session.get("login.context"); diff --git a/Workspace/Siman/src/struts.xml b/Workspace/Siman/src/struts.xml index d3ced39..12a20f3 100644 --- a/Workspace/Siman/src/struts.xml +++ b/Workspace/Siman/src/struts.xml @@ -115,7 +115,9 @@ method="logout"> page.home page.home - page.home + + select?menu=search + page.home page.home page.home