IDEMPIERE-4700 PackOut is creating index and view data for Dictionary entries when export dictionary is disabled (#578)

This commit is contained in:
Carlos Ruiz 2021-02-12 12:12:31 +01:00 committed by GitHub
parent dda6ede13d
commit 84eff33ebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 24 deletions

View File

@ -122,11 +122,8 @@ public class IndexColumnElementHandler extends AbstractElementHandler {
int AD_IndexColumn_ID = Env.getContextAsInt(ctx.ctx, MIndexColumn.COLUMNNAME_AD_IndexColumn_ID); int AD_IndexColumn_ID = Env.getContextAsInt(ctx.ctx, MIndexColumn.COLUMNNAME_AD_IndexColumn_ID);
MIndexColumn m_IndexColumn = new MIndexColumn(ctx.ctx, AD_IndexColumn_ID, getTrxName(ctx)); MIndexColumn m_IndexColumn = new MIndexColumn(ctx.ctx, AD_IndexColumn_ID, getTrxName(ctx));
if (ctx.packOut.getFromDate() != null) { if (!isPackOutElement(ctx, m_IndexColumn))
if (m_IndexColumn.getUpdated().compareTo(ctx.packOut.getFromDate()) < 0) { return;
return;
}
}
AttributesImpl atts = new AttributesImpl(); AttributesImpl atts = new AttributesImpl();
addTypeName(atts, "table"); addTypeName(atts, "table");

View File

@ -132,12 +132,7 @@ public class TableIndexElementHandler extends AbstractElementHandler {
MTableIndex m_TableIndex = new MTableIndex(ctx.ctx, AD_TableIndex_ID, null); MTableIndex m_TableIndex = new MTableIndex(ctx.ctx, AD_TableIndex_ID, null);
boolean createElement = true; boolean createElement = isPackOutElement(ctx, m_TableIndex);
if (ctx.packOut.getFromDate() != null) {
if (m_TableIndex.getUpdated().compareTo(ctx.packOut.getFromDate()) < 0) {
createElement = false;
}
}
if (createElement) { if (createElement) {
if (m_TableIndex.getAD_Message_ID() > 0) { if (m_TableIndex.getAD_Message_ID() > 0) {

View File

@ -113,11 +113,8 @@ public class ViewColumnElementHandler extends AbstractElementHandler {
int AD_ViewColumn_ID = Env.getContextAsInt(ctx.ctx, MViewColumn.COLUMNNAME_AD_ViewColumn_ID); int AD_ViewColumn_ID = Env.getContextAsInt(ctx.ctx, MViewColumn.COLUMNNAME_AD_ViewColumn_ID);
MViewColumn m_ViewColumn = new MViewColumn(ctx.ctx, AD_ViewColumn_ID, getTrxName(ctx)); MViewColumn m_ViewColumn = new MViewColumn(ctx.ctx, AD_ViewColumn_ID, getTrxName(ctx));
if (ctx.packOut.getFromDate() != null) { if (!isPackOutElement(ctx, m_ViewColumn))
if (m_ViewColumn.getUpdated().compareTo(ctx.packOut.getFromDate()) < 0) { return;
return;
}
}
AttributesImpl atts = new AttributesImpl(); AttributesImpl atts = new AttributesImpl();
addTypeName(atts, "table"); addTypeName(atts, "table");

View File

@ -95,12 +95,7 @@ public class ViewComponentElementHandler extends AbstractElementHandler {
MViewComponent m_ViewComponent = new MViewComponent(ctx.ctx, AD_ViewComponent_ID, null); MViewComponent m_ViewComponent = new MViewComponent(ctx.ctx, AD_ViewComponent_ID, null);
boolean createElement = true; boolean createElement = isPackOutElement(ctx, m_ViewComponent);
if (ctx.packOut.getFromDate() != null) {
if (m_ViewComponent.getUpdated().compareTo(ctx.packOut.getFromDate()) < 0) {
createElement = false;
}
}
if (createElement) { if (createElement) {
verifyPackOutRequirement(m_ViewComponent); verifyPackOutRequirement(m_ViewComponent);