From 854936ae9e9687b1caa58530fb91eff2c0f85ce0 Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Wed, 17 Jan 2007 07:14:04 +0000 Subject: [PATCH] [1618423] fixed http://sourceforge.net/tracker/?func=detail&atid=879332&aid=1618423&group_id=176962 --- dbPort/src/org/compiere/model/PO.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dbPort/src/org/compiere/model/PO.java b/dbPort/src/org/compiere/model/PO.java index d00156ea9b..6fa31bf734 100644 --- a/dbPort/src/org/compiere/model/PO.java +++ b/dbPort/src/org/compiere/model/PO.java @@ -683,7 +683,10 @@ public abstract class PO // Set Boolean else if (p_info.getColumnClass(index) == Boolean.class && ("Y".equals(value) || "N".equals(value)) ) - m_newValues[index] = new Boolean("Y".equals(value)); + m_newValues[index] = new Boolean("Y".equals(value)); + else if (value.getClass() == Integer.class + && p_info.getColumnClass(index) == String.class) + m_newValues[index] = value; else { log.log(Level.SEVERE, ColumnName