IDEMPIERE-293 List of active session / fix findbug pattern SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE

This commit is contained in:
Carlos Ruiz 2012-12-10 15:23:43 -05:00
parent a3c1e9dc78
commit db87b54563
1 changed files with 2 additions and 2 deletions

View File

@ -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");
}