IDEMPIERE-3163 Overwritten Dynamic Validation can become invisible and used by system

This commit is contained in:
Carlos Ruiz 2016-08-24 12:24:36 +02:00
parent dc82ae4f78
commit c6ac14ef60
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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;
}