diff --git a/process/ChecklistEntryRegistry_basic/process.js b/process/ChecklistEntryRegistry_basic/process.js index 3cc7f7907d2f685181e985a1a7d1c827fa1ae44a..53e11df9ba9dcffa0cd8c09539a158ec71f5c090 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; } }; }