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);
MIndexColumn m_IndexColumn = new MIndexColumn(ctx.ctx, AD_IndexColumn_ID, getTrxName(ctx));
if (ctx.packOut.getFromDate() != null) {
if (m_IndexColumn.getUpdated().compareTo(ctx.packOut.getFromDate()) < 0) {
return;
}
}
if (!isPackOutElement(ctx, m_IndexColumn))
return;
AttributesImpl atts = new AttributesImpl();
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);
boolean createElement = true;
if (ctx.packOut.getFromDate() != null) {
if (m_TableIndex.getUpdated().compareTo(ctx.packOut.getFromDate()) < 0) {
createElement = false;
}
}
boolean createElement = isPackOutElement(ctx, m_TableIndex);
if (createElement) {
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);
MViewColumn m_ViewColumn = new MViewColumn(ctx.ctx, AD_ViewColumn_ID, getTrxName(ctx));
if (ctx.packOut.getFromDate() != null) {
if (m_ViewColumn.getUpdated().compareTo(ctx.packOut.getFromDate()) < 0) {
return;
}
}
if (!isPackOutElement(ctx, m_ViewColumn))
return;
AttributesImpl atts = new AttributesImpl();
addTypeName(atts, "table");

View File

@ -94,14 +94,9 @@ public class ViewComponentElementHandler extends AbstractElementHandler {
AttributesImpl atts = new AttributesImpl();
MViewComponent m_ViewComponent = new MViewComponent(ctx.ctx, AD_ViewComponent_ID, null);
boolean createElement = true;
if (ctx.packOut.getFromDate() != null) {
if (m_ViewComponent.getUpdated().compareTo(ctx.packOut.getFromDate()) < 0) {
createElement = false;
}
}
boolean createElement = isPackOutElement(ctx, m_ViewComponent);
if (createElement) {
verifyPackOutRequirement(m_ViewComponent);
addTypeName(atts, "table");