details:   https://code.openbravo.com/erp/devel/pi/rev/c016b282ca61
changeset: 23879:c016b282ca61
user:      Javier Etxarri <javier.echarri <at> openbravo.com>
date:      Wed Jun 25 16:46:12 2014 -0500
summary:   Fixes issue 26945: Callout SL_Production_Product can fail

diffstat:

 src/org/openbravo/erpCommon/ad_callouts/SL_Production_Product.java |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 1faacfafd6a3 -r c016b282ca61 
src/org/openbravo/erpCommon/ad_callouts/SL_Production_Product.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_Production_Product.java        
Wed Jun 25 16:32:39 2014 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_Production_Product.java        
Wed Jun 25 16:46:12 2014 -0500
@@ -115,11 +115,12 @@
     resultado.append("new Array(\"inpattributeset\", \"" + 
FormatUtilities.replaceJS(strAttrSet)
         + "\"),\n");
     resultado.append("new Array(\"inpattrsetvaluetype\", \""
-        + FormatUtilities.replaceJS(strAttrSetValueType) + "\"),\n");
+        + FormatUtilities.replaceJS(strAttrSetValueType == null ? 
"":strAttrSetValueType) + "\"),\n");
     resultado.append("new Array(\"inpmovementqty\", " + (strQty.equals("") ? 
"\"\"" : strQty)
         + "),\n");
     resultado.append("new Array(\"inpquantityorder\", " + (strPQty.equals("") 
? "\"\"" : strPQty)
         + "),\n");
+ 
     if (strPUOM.startsWith("\""))
       strPUOM = strPUOM.substring(1, strPUOM.length() - 1);
     resultado.append("new Array(\"inpmProductUomId\", ");

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to