IDEMPIERE-3738 Reference Color broken

This commit is contained in:
Nicolas Micoud 2018-07-04 16:16:19 +02:00
parent 2cf832fc43
commit 6fbb57307d
3 changed files with 4 additions and 11 deletions

View File

@ -743,8 +743,6 @@ public class MColumn extends X_AD_Column
foreignTable = "S_ResourceAssignment";
} else if (DisplayType.Image == refid) {
foreignTable = "AD_Image";
} else if (DisplayType.Color == refid) {
foreignTable = "AD_Color";
} else if (DisplayType.Chart == refid) {
foreignTable = "AD_Chart";
}

View File

@ -199,7 +199,7 @@ public final class DisplayType
if (displayType == ID || displayType == Table || displayType == TableDir
|| displayType == Search || displayType == Location || displayType == Locator
|| displayType == Account || displayType == Assignment || displayType == PAttribute
|| displayType == Image || displayType == Chart || displayType == Color)
|| displayType == Image || displayType == Chart)
return true;
List<IDisplayTypeFactory> factoryList = Service.locator().list(IDisplayTypeFactory.class).getServices();
@ -622,13 +622,8 @@ public final class DisplayType
else
return "VARCHAR2(" + fieldLength + ")";
}
if (displayType == DisplayType.Color) // this condition is never reached - filtered above in isID
{
if (columnName.endsWith("_ID"))
return "NUMBER(10)";
else
return "CHAR(" + fieldLength + ")";
}
if (displayType == DisplayType.Color)
return "VARCHAR2(" + fieldLength + ")";
if (displayType == DisplayType.Button)
{
if (columnName.endsWith("_ID"))

View File

@ -925,7 +925,6 @@ public class DB_Oracle implements AdempiereDatabase
// IDs
case DisplayType.Account:
case DisplayType.Assignment:
case DisplayType.Color:
case DisplayType.ID:
case DisplayType.Location:
case DisplayType.Locator:
@ -979,6 +978,7 @@ public class DB_Oracle implements AdempiereDatabase
break;
// NVARCHAR
case DisplayType.Color:
case DisplayType.Memo:
case DisplayType.String:
case DisplayType.Text: