fix filtering of new tasks

This commit is contained in:
2021-10-28 01:05:36 +02:00
parent e63d645f8a
commit 4da32dc5ca
3 changed files with 43 additions and 0 deletions

View File

@@ -110,6 +110,12 @@ final class SingleTaskAclAwareRepository implements SingleTaskAclAwareRepository
$qb
->setParameter('now', $now);
break;
case 'state_new':
$orXState
->add(
"JSONB_ARRAY_LENGTH(t.currentStates) = 0"
);
break;
case \substr($flag, 0, 6) === 'state_':
$state = \substr($flag, 6);
$orXState