details: /erp/devel/pi/rev/6cd43e3cf91a
changeset: 10899:6cd43e3cf91a
user: Martin Taal <martin.taal <at> openbravo.com>
date: Mon Feb 28 10:25:42 2011 +0100
summary: Prevent grid datasource from being used in filter editor fields
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
| 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diffs (18 lines):
diff -r 3f3573510a96 -r 6cd43e3cf91a
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
Mon Feb 28 10:23:15 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
Mon Feb 28 10:25:42 2011 +0100
@@ -456,6 +456,14 @@
return ret;
},
+ // overridden to prevent the filter editor fields from using the
+ // grids datasource
+ getFilterEditorProperties: function(field) {
+ return isc.addProperties({
+ optionDataSource: null
+ }, this.Super('getFilterEditorProperties', arguments));
+ },
+
refreshGrid: function(callback){
if (this.getSelectedRecord()) {
this.targetRecordId = this.getSelectedRecord()[OB.Constants.ID];
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits