details: /erp/devel/pi/rev/84fe58138b00
changeset: 10989:84fe58138b00
user: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
date: Thu Mar 03 13:10:55 2011 +0100
summary: Fixed issue with stocked default filter expression on Product
Complete Selector.
details: /erp/devel/pi/rev/10c7295f015a
changeset: 10990:10c7295f015a
user: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
date: Thu Mar 03 13:15:42 2011 +0100
summary: [OBUIAPP] In some cases a String is passed instead a boolean.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-utilities.js
| 2 +-
src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml
| 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 29010d7cd197 -r 10c7295f015a
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-utilities.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-utilities.js
Thu Mar 03 12:59:35 2011 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-utilities.js
Thu Mar 03 13:15:42 2011 +0100
@@ -431,7 +431,7 @@
// ** {{{ OB.Utilities.getYesNoDisplayValue }}} **
// Returns the Yes label if the passed value is true, the No label if false.
OB.Utilities.getYesNoDisplayValue = function(/* Boolean */value){
- if (value) {
+ if (value === true || value === 'true') {
return OB.I18N.getLabel('OBUISC_Yes');
} else if (value === false) {
return OB.I18N.getLabel('OBUISC_No');
diff -r 29010d7cd197 -r 10c7295f015a
src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml
--- a/src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml Thu Mar 03
12:59:35 2011 +0100
+++ b/src-db/database/sourcedata/OBUISEL_SELECTOR_FIELD.xml Thu Mar 03
13:15:42 2011 +0100
@@ -927,7 +927,7 @@
<!--FF8080812E77708D012E7796A94B0017--> <SORTNO><![CDATA[110]]></SORTNO>
<!--FF8080812E77708D012E7796A94B0017--> <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--FF8080812E77708D012E7796A94B0017--> <ISOUTFIELD><![CDATA[N]]></ISOUTFIELD>
-<!--FF8080812E77708D012E7796A94B0017--> <DEFAULT_EXPRESSION><![CDATA[if
(OB.isSalesTransaction() == true) { 'true' } else
{'false'}]]></DEFAULT_EXPRESSION>
+<!--FF8080812E77708D012E7796A94B0017--> <DEFAULT_EXPRESSION><![CDATA[if
(OB.isSalesTransaction() == true) { true } else { false
}]]></DEFAULT_EXPRESSION>
<!--FF8080812E77708D012E7796A94B0017-->
<SHOWINPICKLIST><![CDATA[N]]></SHOWINPICKLIST>
<!--FF8080812E77708D012E7796A94B0017--></OBUISEL_SELECTOR_FIELD>
------------------------------------------------------------------------------
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