Solve issue that where and other parameters are not passed to the server
authorMartin Taal <martin.taal@openbravo.com>
Wed, 09 Mar 2011 12:04:25 +0100
changeset 11136 ebf9e80e7ce4
parent 11135 50c83574cdc9
child 11137 1097ad23966d
Solve issue that where and other parameters are not passed to the server
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view-datasource.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view-datasource.js	Wed Mar 09 12:04:08 2011 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-standard-view-datasource.js	Wed Mar 09 12:04:25 2011 +0100
@@ -180,18 +180,12 @@
   // properties.
   getTabInfoRequestProperties: function(theView, requestProperties){
     if (theView && theView.tabId) {
-      var tabParam = {
-        params: {
+      requestProperties.params = requestProperties.params || {};
+      isc.addProperties(requestProperties.params, {
           windowId: theView.standardWindow.windowId,
           tabId: theView.tabId,
           moduleId: theView.moduleId
-        }
-      };
-      if (requestProperties) {
-        isc.addProperties(requestProperties, tabParam);
-      } else {
-        requestProperties = tabParam;
-      }
+      });
     }
     return requestProperties;
   }