diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-11-13 13:11:26 +0100 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-11-13 14:13:01 +0000 |
commit | bf301df539e43e46a3d978897097e915a60506e1 (patch) | |
tree | 759212fa880329f5c1a814f7e6d458612a71d814 /apps | |
parent | a61c609e9217befad24528e4c59cef92284ece49 (diff) | |
download | nextcloud-server-bf301df539e43e46a3d978897097e915a60506e1.tar.gz nextcloud-server-bf301df539e43e46a3d978897097e915a60506e1.zip |
fix(workflowengine): use andWhere() not second where()
- an unconditional where() condition is added right before
- fixes also wrongly named methods in the Exception message
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/workflowengine/lib/Manager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Manager.php b/apps/workflowengine/lib/Manager.php index 674cfc65313..24e3c216e48 100644 --- a/apps/workflowengine/lib/Manager.php +++ b/apps/workflowengine/lib/Manager.php @@ -380,7 +380,7 @@ class Manager implements IManager { ->where($qb->expr()->eq('s.type', $qb->createParameter('scope'))); if ($scopeContext->getScope() !== IManager::SCOPE_ADMIN) { - $qb->where($qb->expr()->eq('s.value', $qb->createParameter('scopeId'))); + $qb->andWhere($qb->expr()->eq('s.value', $qb->createParameter('scopeId'))); } $qb->setParameters(['scope' => $scopeContext->getScope(), 'scopeId' => $scopeContext->getScopeId()]); |