details:   https://code.openbravo.com/erp/devel/pi/rev/8802a373c74a
changeset: 15083:8802a373c74a
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Mon Jan 09 18:19:38 2012 +0100
summary:   Fixed issue 18453. Set session variables in backend after saving a 
new record.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
 |  9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r e680b3f84e34 -r 8802a373c74a 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
     Mon Jan 09 12:29:14 2012 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
     Mon Jan 09 18:19:38 2012 +0100
@@ -1390,6 +1390,15 @@
         // of the attachments section are created
         if(savingNewRecord){
           this.attachmentsSection.fillAttachments(null);
+          // We also do a call to the FIC on SETSESSION mode to set the 
session variables
+          // to fix issue 18453
+          var sessionProperties = this.view.getContextInfo(true, true, false, 
true);
+          
OB.RemoteCallManager.call('org.openbravo.client.application.window.FormInitializationComponent',
 sessionProperties, {
+            MODE: 'SETSESSION',
+            TAB_ID: this.view.tabId,
+            PARENT_ID: this.view.getParentId(),
+            ROW_ID: this.values.id
+          }, null);
         }
         
       } else if (status === isc.RPCResponse.STATUS_VALIDATION_ERROR && 
resp.errors) {

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to