mirror of
https://github.com/nextcloud/server.git
synced 2026-05-20 17:15:46 -04:00
Merge pull request #41417 from nextcloud/fix/noid/use-andWhere-not-where
fix(workflowengine): use andWhere() not second where()
This commit is contained in:
commit
eaaf954753
2 changed files with 2 additions and 2 deletions
|
|
@ -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()]);
|
||||
|
|
|
|||
|
|
@ -866,7 +866,7 @@ class QueryBuilder implements IQueryBuilder {
|
|||
public function where(...$predicates) {
|
||||
if ($this->getQueryPart('where') !== null && $this->systemConfig->getValue('debug', false)) {
|
||||
// Only logging a warning, not throwing for now.
|
||||
$e = new QueryException('Using where() on non-empty WHERE part, please verify it is intentional to not call whereAnd() or whereOr() instead. Otherwise consider creating a new query builder object or call resetQueryPart(\'where\') first.');
|
||||
$e = new QueryException('Using where() on non-empty WHERE part, please verify it is intentional to not call andWhere() or orWhere() instead. Otherwise consider creating a new query builder object or call resetQueryPart(\'where\') first.');
|
||||
$this->logger->warning($e->getMessage(), ['exception' => $e]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue