From 849650d1b3a31efd186a4224c216ec74400f8dc3 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sun, 28 Oct 2007 15:44:09 +0000 Subject: [PATCH] Fix bug [ 1821672 ] Wrong alter table for EntityType and AD_Language --- base/src/org/compiere/model/MColumn.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base/src/org/compiere/model/MColumn.java b/base/src/org/compiere/model/MColumn.java index dd34e25e84..c3b7cdc398 100644 --- a/base/src/org/compiere/model/MColumn.java +++ b/base/src/org/compiere/model/MColumn.java @@ -310,6 +310,8 @@ public class MColumn extends X_AD_Column if (DisplayType.isText(getAD_Reference_ID()) || getAD_Reference_ID() == DisplayType.List || getAD_Reference_ID() == DisplayType.YesNo + // Two special columns: Defined as Table but DB Type is String + || getColumnName().equals("EntityType") || getColumnName().equals("AD_Language") || (getAD_Reference_ID() == DisplayType.Button && !(getColumnName().endsWith("_ID")))) { @@ -356,6 +358,8 @@ public class MColumn extends X_AD_Column if (DisplayType.isText(getAD_Reference_ID()) || getAD_Reference_ID() == DisplayType.List || getAD_Reference_ID() == DisplayType.YesNo + // Two special columns: Defined as Table but DB Type is String + || getColumnName().equals("EntityType") || getColumnName().equals("AD_Language") || (getAD_Reference_ID() == DisplayType.Button && !(getColumnName().endsWith("_ID")))) {