Skip to content
Snippets Groups Projects
Commit 1132d707 authored by Johannes Goderbauer's avatar Johannes Goderbauer Committed by Johannes Goderbauer
Browse files

fix #1051792: duplicate_entity used wrong join columns for ORGANISATION

(cherry picked from commit d6713f3f)
parent 246c4e42
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ else
duplicateInfosQuery.select("CLUSTERID, ORGANISATION.\"NAME\"")
.from("DUPLICATECLUSTERS")
.join("CONTACT", "CONTACT.CONTACTID = DUPLICATEID")
.join("ORGANISATION", "ORGANISATION.ORGANISATIONID = CONTACT.CONTACTID")
.join("ORGANISATION", "ORGANISATION.ORGANISATIONID = CONTACT.ORGANISATION_ID")
.where("DUPLICATEID not in (select UNRELATEDDUPLICATES.UNRELATEDDUPLICATEID from UNRELATEDDUPLICATES)")
.andIfSet("DUPLICATECLUSTERS.CLUSTERID", vars.get("$local.idvalues"), SqlBuilder.IN())
.orderBy("CLUSTERID");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment