From 826742fcd43185397f322befb4b6d4dfd2bb64ba Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 6 Dec 2007 20:57:14 +0000 Subject: [PATCH] Fix bug [ 1845793 ] PO.set_CustomColumn not updating correctly m_newValues --- base/src/org/compiere/model/PO.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/base/src/org/compiere/model/PO.java b/base/src/org/compiere/model/PO.java index 3cc8ee0554..f00ac664a4 100644 --- a/base/src/org/compiere/model/PO.java +++ b/base/src/org/compiere/model/PO.java @@ -868,6 +868,14 @@ public abstract class PO */ public final void set_CustomColumn (String columnName, Object value) { + // [ 1845793 ] PO.set_CustomColumn not updating correctly m_newValues + // this is for columns not in PO - verify and call proper method if exists + int poIndex = get_ColumnIndex(columnName); + if (poIndex > 0) { + // is not custom column - it exists in the PO + set_Value(columnName, value); + return; + } if (m_custom == null) m_custom = new HashMap(); String valueString = "NULL";