IDEMPIERE-5430 UPDATE generating unnecessary settings for null columns (#1496)

This commit is contained in:
Carlos Ruiz 2022-09-23 09:25:51 +02:00 committed by GitHub
parent 536eda3546
commit aef93fb113
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -210,8 +210,11 @@ public class MField extends X_AD_Field implements ImmutablePOSupport
setIsAllowCopy("Y");
}
if (getAD_Reference_ID() <= 0) {
if (getAD_Reference_Value_ID()!=0)
setAD_Reference_Value_ID(0);
if (getAD_Val_Rule_ID()!=0)
setAD_Val_Rule_ID(0);
if (getIsToolbarButton() != null)
setIsToolbarButton(null);
}