IDEMPIERE-3812 2Pack creating inactive columns in database
This commit is contained in:
parent
30311f6b0a
commit
56d065cfac
|
@ -163,7 +163,7 @@ public class ColumnElementHandler extends AbstractElementHandler {
|
||||||
throw new POSaveFailedException("Failed to save column " + mColumn.getName());
|
throw new POSaveFailedException("Failed to save column " + mColumn.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (recreateColumn || syncDatabase) {
|
if (mColumn.isActive() && (recreateColumn || syncDatabase)) {
|
||||||
deferFK(element, mColumn);
|
deferFK(element, mColumn);
|
||||||
syncColumn(ctx, mColumn, action, recreateColumn);
|
syncColumn(ctx, mColumn, action, recreateColumn);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue