details:   https://code.openbravo.com/erp/devel/pi/rev/ad890ff93c7e
changeset: 22886:ad890ff93c7e
user:      Guillermo Gil <guillermo.gil <at> openbravo.com>
date:      Wed Apr 16 15:18:59 2014 +0200
summary:   Related to issue 26198: Added preferenceValues only to the view

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
 |  14 +++++-----
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (44 lines):

diff -r d67ab4f96f4d -r ad890ff93c7e 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
 Wed Apr 16 15:11:44 2014 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
 Wed Apr 16 15:18:59 2014 +0200
@@ -234,9 +234,9 @@
     // logic of the tab, see issue 
https://issues.openbravo.com/view.php?id=5202), assign them
     // to the form, so they will be retrieved when getContextInfo() is called 
for the form
     if (this.sessionAttributesNames) {
-      this.viewForm.sessionAttributes = {};
+      this.preferenceValues = {};
       for (i = 0; i < this.sessionAttributesNames.length; i++) {
-        this.viewForm.sessionAttributes[this.sessionAttributesNames[i]] = 
OB.PropertyStore.get(this.sessionAttributesNames[i], 
this.standardWindow.windowId);
+        this.preferenceValues[this.sessionAttributesNames[i]] = 
OB.PropertyStore.get(this.sessionAttributesNames[i], 
this.standardWindow.windowId);
       }
     }
 
@@ -1441,7 +1441,7 @@
         // Calling getContextInfo with (false, true, true) in order to obtain 
also the value of the
         // session attributes of the form
         contextInfo = this.getContextInfo(false, true, true);
-        this.addSessionAttributes(contextInfo, tabViewPane);
+        this.addPreferenceValues(contextInfo, tabViewPane);
         if (tabViewPane.showTabIf && !(tabViewPane.showTabIf(contextInfo))) {
           this.childTabSet.tabBar.members[i].hide();
           tabViewPane.hidden = true;
@@ -1486,15 +1486,15 @@
 
   // Adds to contextInfo the session attributes of the childView, 
   // unless the session attribute is an auxiliary input of its parent tab
-  addSessionAttributes: function (contextInfo, childView) {
+  addPreferenceValues: function (contextInfo, childView) {
     var auxInputs = {},
         p;
     if (this.viewForm && this.viewForm.auxInputs) {
       auxInputs = this.viewForm.auxInputs;
     }
-    for (p in childView.viewForm.sessionAttributes) {
-      if (childView.viewForm.sessionAttributes.hasOwnProperty(p) && 
!auxInputs.hasOwnProperty(p)) {
-        contextInfo[p] = childView.viewForm.sessionAttributes[p];
+    for (p in childView.preferenceValues) {
+      if (childView.preferenceValues.hasOwnProperty(p) && 
!auxInputs.hasOwnProperty(p)) {
+        contextInfo[p] = childView.preferenceValues[p];
       }
     }
   },

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to