details:   https://code.openbravo.com/erp/devel/pi/rev/7b8f68718e5b
changeset: 14333:7b8f68718e5b
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Tue Nov 22 19:09:23 2011 +0100
summary:   Fixed issue 18909: 'undefined' text is not shown anymore in classic 
selector popups

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-search.js
 |  13 ++++++---
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r b56cc7fc1999 -r 7b8f68718e5b 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-search.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-search.js
      Mon Nov 21 10:48:12 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-search.js
      Tue Nov 22 19:09:23 2011 +0100
@@ -164,7 +164,12 @@
     var complementsNS4 = '';
     var auxField = '';
     var hidden, i;
-    
+    var displayedValue = '';
+
+    if (this.valueMap[this.getValue()]) {
+      displayedValue = this.valueMap[this.getValue()];
+    }
+
     if (url.indexOf('Location') !== -1) {
       height = 300;
       width = 600;
@@ -182,7 +187,7 @@
     isc.OBSearchItem.openedWindow = null;
     
     if (strValueID) {
-      auxField = 'inpNameValue=' + 
encodeURIComponent(this.form.getValue(this.displayField));
+      auxField = 'inpNameValue=' + encodeURIComponent(displayedValue);
     }
     if (parameters) {
       var total = parameters.length;
@@ -235,6 +240,4 @@
     window.onunload = function(){
     };
   }
-});
-
-
+});
\ No newline at end of file

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to