Skip to content
Snippets Groups Projects
Commit 3ee71afb authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

refactor a sqlbuilder usage

parent 4fd43b3b
No related branches found
No related tags found
No related merge requests found
......@@ -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
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