From db87b54563f72246bb3dc1e8da120f002eaf3720 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 10 Dec 2012 15:23:43 -0500 Subject: [PATCH] IDEMPIERE-293 List of active session / fix findbug pattern SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE --- .../org/adempiere/webui/session/SessionContextListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/session/SessionContextListener.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/session/SessionContextListener.java index 67688cf5ef..bb058512c8 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/session/SessionContextListener.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/session/SessionContextListener.java @@ -316,7 +316,7 @@ public class SessionContextListener implements ExecutionInit, MSession mSession = MSession.get(Env.getCtx(), false); if(mSession!=null && !mSession.isProcessed() && (Env.getContext(Env.getCtx(), "isReloaded")==null || Env.getContext(Env.getCtx(), "isReloaded").equals("") || Env.getContext(Env.getCtx(), "isReloaded").equals("N"))){ mSession.setProcessed(true); - mSession.save(); + mSession.saveEx(); } Env.setContext(Env.getCtx(), "isReloaded", "N"); } @@ -331,7 +331,7 @@ public class SessionContextListener implements ExecutionInit, MSession mSession = MSession.get(Env.getCtx(), false); if(mSession!=null && mSession.isProcessed()){ mSession.setProcessed(false); - mSession.save(); + mSession.saveEx(); }else if(mSession!=null){ Env.setContext(Env.getCtx(), "isReloaded", "Y"); }