diff --git a/entity/Task_entity/recordcontainers/db/conditionProcess.js b/entity/Task_entity/recordcontainers/db/conditionProcess.js index 53cd0f2efc974ca5f2c81914c7c653ccaf83198b..98ee6c1d37d0602d24647a54c6c46497854029d6 100644 --- a/entity/Task_entity/recordcontainers/db/conditionProcess.js +++ b/entity/Task_entity/recordcontainers/db/conditionProcess.js @@ -8,10 +8,10 @@ import("KeywordRegistry_basic"); var cond = newWhere("TASK.KIND", $KeywordRegistry.taskType$task()) var loadNothing = false; +var ownContactId = EmployeeUtils.getCurrentContactId(); if (vars.getString("$param.FilterOnlyOwnTask_param") == "true") { - var ownContactId = EmployeeUtils.getCurrentContactId(); if (ownContactId) cond.andIfSet("TASK.EDITOR_CONTACT_ID", ownContactId); else