details:   https://code.openbravo.com/erp/devel/pi/rev/5f805d20cad7
changeset: 23075:5f805d20cad7
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Tue May 20 17:11:03 2014 +0200
summary:   Fixes issue 26636: Error in int-checks-pgsql

Before a refactor, the showTreeGrid attribute was declared, initialized and 
used in a function. After this refactor, the attribute is declared and 
initialized in a function, and used in another, without being declared in the 
latter function.

To fix this, now the first functions passes the showTreeGrid attribute as an 
argument to the second function.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-manage-views.js
 |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 43e598987eb7 -r 5f805d20cad7 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-manage-views.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-manage-views.js
       Thu May 15 23:49:40 2014 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/personalization/ob-manage-views.js
       Tue May 20 17:11:03 2014 +0200
@@ -159,7 +159,7 @@
         view.childTabSet.selectTab(viewTabDefinition.selectedTab);
       }
       if (view.isRootView || view.isRenderedChildView) {
-        OB.Personalization.applyViewDefinitionToView(view, viewTabDefinition);
+        OB.Personalization.applyViewDefinitionToView(view, viewTabDefinition, 
showTreeGrid);
       } else {
         // If the view has not been rendered yet, store the 
'initialTabDefinition' to be able
         // to set the proper view definition as soon as the view be loaded.
@@ -171,7 +171,7 @@
 
 // ** {{{OB.Personalization.applyViewDefinitionToView}}} **
 // Apply a passed view definition to a particular view
-OB.Personalization.applyViewDefinitionToView = function (view, 
viewTabDefinition) {
+OB.Personalization.applyViewDefinitionToView = function (view, 
viewTabDefinition, showTreeGrid) {
   if (!view || !viewTabDefinition) {
     return;
   }

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to