diff --git a/module/action/model.php b/module/action/model.php index 8d07a3b767..d5f18e1f3c 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -293,9 +293,8 @@ class actionModel extends model ->beginIF($objectType != 'all')->andWhere('objectType')->eq($objectType)->fi() ->beginIF($objectType == 'execution')->andWhere('objectID')->notIn($noMultipleExecutions)->fi() ->beginIF($objectType == 'all') - ->andWhere('objectType', true)->ne('exection') - ->markLeft(1) - ->orWhere('objectType')->eq('exection')->andWhere('objectID')->notIn($noMultipleExecutions) + ->andWhere('objectType', true)->ne('execution') + ->orWhere('(objectType')->eq('execution')->andWhere('objectID')->notIn($noMultipleExecutions) ->markRight(2) ->fi() ->andWhere('extra')->eq($extra)