From 56d065cfacb55310210389cd43666f64d48b7e74 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 8 Nov 2018 09:29:01 -0200 Subject: [PATCH] IDEMPIERE-3812 2Pack creating inactive columns in database --- .../src/org/adempiere/pipo2/handler/ColumnElementHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.pipo.handlers/src/org/adempiere/pipo2/handler/ColumnElementHandler.java b/org.adempiere.pipo.handlers/src/org/adempiere/pipo2/handler/ColumnElementHandler.java index 50bd809429..763e77c17b 100644 --- a/org.adempiere.pipo.handlers/src/org/adempiere/pipo2/handler/ColumnElementHandler.java +++ b/org.adempiere.pipo.handlers/src/org/adempiere/pipo2/handler/ColumnElementHandler.java @@ -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); }