Skip to content
Snippets Groups Projects
Commit 53deb0a0 authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1048420][Dublette/ Kontakt:...

[Projekt: Entwicklung - Neon][TicketNr.: 1048420][Dublette/ Kontakt: Fehlermeldung bei Integriere ausgewählten in aktuellen Datensatz]
[Projekt: Entwicklung - Neon][TicketNr.: 1052262][Firmen und Personen können nicht gelöscht werden]
[Projekt: Entwicklung - Neon][TicketNr.: 1048690][Reiter Beziehungen in der Firma]
parent b4ef5e07
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ DuplicateScannerUtils.DeleteCachedDuplicate = function(pDuplicateId)
SqlBuilder.IN())
.and("DUPLICATECLUSTERS.DUPLICATEID", pDuplicateId, SqlBuilder.NOT_EQUAL());
var test = newSelect("CLUSTERID")
var clusterIdArray = newSelect("CLUSTERID")
.from("DUPLICATECLUSTERS")
.where("DUPLICATECLUSTERS.CLUSTERID", newSelect("CLUSTERID")
.from("DUPLICATECLUSTERS")
......@@ -67,20 +67,11 @@ var test = newSelect("CLUSTERID")
SqlBuilder.IN())
.and("DUPLICATECLUSTERS.DUPLICATEID", pDuplicateId, SqlBuilder.NOT_EQUAL())
.groupBy("CLUSTERID");
var so = "select count(ID),( select CLUSTERID from DUPLICATECLUSTERS)"
+ " from DUPLICATECLUSTERS where DUPLICATECLUSTERS.CLUSTERID in"
+ " (select CLUSTERID from DUPLICATECLUSTERS where(DUPLICATECLUSTERS.DUPLICATEID = ('" + pDuplicateId + "')))"
+ " and("
+ " DUPLICATECLUSTERS.DUPLICATEID <> ('" + pDuplicateId + "')"
+ " )"
+ " group by CLUSTERID"
var countAndClusterId = query.arrayRow();
var testundso = test.arrayRow()
let countDuplicatesInClusterWithoutParameterId = countAndClusterId[0];
let clusterId = testundso[0];
let clusterId = clusterIdArray[0];
//If only one duplicate would be remaining,
//the whole cluster has to be deleted because there are no more duplicates.
......
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