IDEMPIERE-3812 2Pack creating inactive columns in database

This commit is contained in:
Carlos Ruiz 2018-11-08 09:29:01 -02:00
parent 30311f6b0a
commit 56d065cfac
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ public class ColumnElementHandler extends AbstractElementHandler {
throw new POSaveFailedException("Failed to save column " + mColumn.getName());
}
if (recreateColumn || syncDatabase) {
if (mColumn.isActive() && (recreateColumn || syncDatabase)) {
deferFK(element, mColumn);
syncColumn(ctx, mColumn, action, recreateColumn);
}