From 0dcc13fee89f27aa32a8f0afb56fa6453987171e Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Tue, 5 Jun 2007 14:19:24 +0000 Subject: [PATCH] [ 1731362 ] When you modify product's name it throws SQLException http://sourceforge.net/tracker/index.php?func=detail&aid=1731362&group_id=176962&atid=879332 --- base/src/org/compiere/model/MProduct.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/src/org/compiere/model/MProduct.java b/base/src/org/compiere/model/MProduct.java index eda68ddec4..01f62a2891 100644 --- a/base/src/org/compiere/model/MProduct.java +++ b/base/src/org/compiere/model/MProduct.java @@ -600,9 +600,9 @@ public class MProduct extends X_M_Product { String sql = "UPDATE A_Asset a " + "SET (Name, Description)=" - + "(SELECT SUBSTR(bp.Name || ' - ' || p.Name,1,60), p.Description " - + "FROM M_Product p, C_BPartner bp " - + "WHERE p.M_Product_ID=a.M_Product_ID AND bp.C_BPartner_ID=a.C_BPartner_ID) " + + "(SELECT SUBSTR((SELECT bp.Name FROM C_BPartner bp WHERE bp.C_BPartner_ID=a.C_BPartner_ID) || ' - ' || p.Name,1,60), p.Description " + + "FROM M_Product p " + + "WHERE p.M_Product_ID=a.M_Product_ID) " + "WHERE IsActive='Y'" // + " AND GuaranteeDate > SysDate" + " AND M_Product_ID=" + getM_Product_ID();