details: /erp/devel/pi/rev/3972c4e13990
changeset: 10683:3972c4e13990
user: Martin Taal <martin.taal <at> openbravo.com>
date: Tue Feb 15 22:24:47 2011 +0100
summary: Solved issue with not possible to select drop down value
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
| 9 ---------
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
| 5 +++--
2 files changed, 3 insertions(+), 11 deletions(-)
diffs (36 lines):
diff -r 782ab7064e7f -r 3972c4e13990
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
Tue Feb 15 20:08:42 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-formitem-widgets.js
Tue Feb 15 22:24:47 2011 +0100
@@ -453,15 +453,6 @@
return '';
}
return ret;
- },
-
- // the empty value is a string null instead of a 'null'
- mapDisplayToValue: function(displayValue) {
- var ret = this.Super('mapDisplayToValue', arguments);
- if (ret === 'null') {
- return null;
- }
- return ret;
}
});
diff -r 782ab7064e7f -r 3972c4e13990
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
Tue Feb 15 20:08:42 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
Tue Feb 15 22:24:47 2011 +0100
@@ -414,10 +414,11 @@
// note field can be a datasource field, see above, in that case
// don't set the entries
if (field.form && entries) {
+ var required = field.required;
for (i = 0; i < entries.length; i++) {
- id = entries[i][OB.Constants.ID] || null;
+ id = entries[i][OB.Constants.ID] || '';
identifier = entries[i][OB.Constants.IDENTIFIER] || '';
- valueMap[id] = (identifier === 'null' ? null : identifier);
+ valueMap[id] = identifier;
}
field.setValueMap(valueMap);
}
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits