IDEMPIERE-3163 Overwritten Dynamic Validation can become invisible and used by system
This commit is contained in:
parent
dc82ae4f78
commit
c6ac14ef60
|
@ -144,6 +144,11 @@ public class MField extends X_AD_Field
|
|||
if (getAD_Column().getColumnName().equals("AD_Org_ID")) // AD_Org_ID can be copied
|
||||
setIsAllowCopy("Y");
|
||||
}
|
||||
if (getAD_Reference_ID() <= 0) {
|
||||
setAD_Reference_Value_ID(0);
|
||||
setAD_Val_Rule_ID(0);
|
||||
setIsToolbarButton(null);
|
||||
}
|
||||
|
||||
return true;
|
||||
} // beforeSave
|
||||
|
|
|
@ -134,6 +134,11 @@ public class MUserDefField extends X_AD_UserDef_Field
|
|||
return false;
|
||||
}
|
||||
}
|
||||
if (getAD_Reference_ID() <= 0) {
|
||||
setAD_Reference_Value_ID(0);
|
||||
setAD_Val_Rule_ID(0);
|
||||
setIsToolbarButton(null);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue