diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-11-13 13:11:26 +0100 |
---|---|---|
committer | Daniel <mail@danielkesselberg.de> | 2023-11-13 14:47:47 +0100 |
commit | 93505b2cdd62fe60a09ea35164014a914627394e (patch) | |
tree | 807e7abb81eee9349b6a127803ec9500fc8a2fb5 /apps/workflowengine | |
parent | 0f694bec82907894300ebca76ec335374196f6e0 (diff) | |
download | nextcloud-server-93505b2cdd62fe60a09ea35164014a914627394e.tar.gz nextcloud-server-93505b2cdd62fe60a09ea35164014a914627394e.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/workflowengine')
-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 28bc4417bb9..d8be5e4f8df 100644 --- a/apps/workflowengine/lib/Manager.php +++ b/apps/workflowengine/lib/Manager.php @@ -333,7 +333,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()]); |