Fixes issue 0021622: When loading seconday unit combo in order line callout,
authorJon Alegría <jon.alegria@openbravo.com>
Wed, 12 Sep 2012 12:55:04 +0200
changeset 17928 671346f6a420
parent 17927 a8f432b843b5
child 17929 14b5c060f731
Fixes issue 0021622: When loading seconday unit combo in order line callout,
the code is different to english and the rest
src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java	Wed Sep 12 11:37:41 2012 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java	Wed Sep 12 12:55:04 2012 +0200
@@ -242,7 +242,8 @@
         resultado.append("new Array(");
         for (int i = 0; i < tld.length; i++) {
           resultado.append("new Array(\"" + tld[i].getField("id") + "\", \""
-              + FormatUtilities.replaceJS(tld[i].getField("name")) + "\", \"" + ("false") + "\")");
+              + FormatUtilities.replaceJS(tld[i].getField("name")) + "\", \"" 
+	      + (i == 0 ? "true" : "false") + "\")");
           if (i < tld.length - 1) {
             resultado.append(",\n");
           }