From 471a1adfcdbb10a74af688637357573827871fd7 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 30 May 2012 14:28:21 -0500 Subject: [PATCH] IDEMPIERE-283 Synchronize Terminology is deleting translation of unused official elements --- .../src/org/compiere/process/SynchronizeTerminology.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base.process/src/org/compiere/process/SynchronizeTerminology.java b/org.adempiere.base.process/src/org/compiere/process/SynchronizeTerminology.java index 0c698d53d1..420c61c755 100644 --- a/org.adempiere.base.process/src/org/compiere/process/SynchronizeTerminology.java +++ b/org.adempiere.base.process/src/org/compiere/process/SynchronizeTerminology.java @@ -131,7 +131,7 @@ public class SynchronizeTerminology extends SvrProcess log.info("Deleting unused Elements"); sql="DELETE AD_ELEMENT_TRL" - +" WHERE AD_Element_ID IN" + +" WHERE AD_Element_ID >= 1000000 AND AD_Element_ID IN" +" (SELECT AD_Element_ID FROM AD_ELEMENT e " +" WHERE NOT EXISTS" +" (SELECT 1 FROM AD_COLUMN c WHERE UPPER(e.ColumnName)=UPPER(c.ColumnName))"