From b9dd62b301267c1367bdb9db230b13d9359cb8ae Mon Sep 17 00:00:00 2001 From: "p.neub" <p.neub@adito.de> Date: Thu, 20 May 2021 09:42:12 +0200 Subject: [PATCH] =?UTF-8?q?[Projekt:=20xRM-Sales][TicketNr.:=201080118][Au?= =?UTF-8?q?tomatische=20checklisteneintr=C3=A4ge=20Quelle=20/=20Herkunft?= =?UTF-8?q?=20der=20Kontaktgenerierung=20wird=20nicht=20angehakt]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- process/ChecklistEntryRegistry_basic/process.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/process/ChecklistEntryRegistry_basic/process.js b/process/ChecklistEntryRegistry_basic/process.js index 3cc7f7907d..53e11df9ba 100644 --- a/process/ChecklistEntryRegistry_basic/process.js +++ b/process/ChecklistEntryRegistry_basic/process.js @@ -516,14 +516,11 @@ $ChecklistEntryRegistry.salesprojectContactsGenerationSource = function(){ return{ title: translate.text("Source / origin of the generation of contacts"), verifierFn: function(pSalesprojectId){ - return parseInt(AttributeRelationUtils.getAttributeSqlBuilder( - ["count(*)"], - pSalesprojectId, - "Salesproject" - ) - .and("AB_ATTRIBUTE.ATTRIBUTE_PARENT_ID", "d0ae40d2-1a7f-45f6-bb0c-20ce6ae7efe2") - .cell() - ) > 0; + return new AttributeRelationQuery( + pSalesprojectId, + "d0ae40d2-1a7f-45f6-bb0c-20ce6ae7efe2", + "Salesproject" + ).getAttributeCount() > 0; } }; } -- GitLab