IDEMPIERE-3738 Reference Color broken
This commit is contained in:
parent
2cf832fc43
commit
6fbb57307d
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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"))
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue