[OBUISEL] Fixes issue with missing extra request properties
authorIván Perdomo <ivan.perdomo@openbravo.com>
Tue, 08 Mar 2011 13:30:50 +0100
changeset 11090 6f23b67db4fa
parent 11089 5ca988e24a8c
child 11091 fe663d27823d
[OBUISEL] Fixes issue with missing extra request properties
modules/org.openbravo.service.datasource/web/org.openbravo.service.datasource/js/ob-datasource-utilities.js
--- a/modules/org.openbravo.service.datasource/web/org.openbravo.service.datasource/js/ob-datasource-utilities.js	Tue Mar 08 13:15:00 2011 +0100
+++ b/modules/org.openbravo.service.datasource/web/org.openbravo.service.datasource/js/ob-datasource-utilities.js	Tue Mar 08 13:30:50 2011 +0100
@@ -124,5 +124,12 @@
 isc.ClassFactory.defineClass('OBRestDataSource', isc.RestDataSource);
 
 isc.OBRestDataSource.addProperties({
+  sendDSRequest: function(dsRequest) {
+	//TODO: Report an issue to SmartClient - This part is a work around
+    if (dsRequest.params && this.requestProperties && this.requestProperties.params) {
+      isc.addProperties(dsRequest.params, this.requestProperties.params);
+    }
+    this.Super('sendDSRequest', arguments);
+  }
 });