From 3ee71afba8dac16c9792e4cabd1e797d4de6afae Mon Sep 17 00:00:00 2001 From: Johannes Hoermann <j.hoermann@adito.de> Date: Wed, 23 Oct 2019 12:17:58 +0200 Subject: [PATCH] refactor a sqlbuilder usage --- entity/ClassificationAdmin_entity/grantDeleteProcess.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/entity/ClassificationAdmin_entity/grantDeleteProcess.js b/entity/ClassificationAdmin_entity/grantDeleteProcess.js index 7c5a620b8e1..4e17fa5f17f 100644 --- a/entity/ClassificationAdmin_entity/grantDeleteProcess.js +++ b/entity/ClassificationAdmin_entity/grantDeleteProcess.js @@ -6,9 +6,6 @@ import("Sql_lib"); var count = newSelect("count(*)") .from("CLASSIFICATION") .whereIfSet("CLASSIFICATION.CLASSIFICATIONTYPE_ID", "$field.CLASSIFICATIONTYPEID") - .cell(true); - -if (!count) - count = 0; + .cell(true, "0"); result.object(parseInt(count) <= 0); \ No newline at end of file -- GitLab