mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX Remove unnecessary DISTINCT from ManyManyList->removeAll()
Breaks Postgres if the innermost query has an ORDER BY statement as well
This commit is contained in:
parent
f44d5b311e
commit
ff3b63f2a9
@ -180,6 +180,7 @@ class ManyManyList extends RelationList {
|
||||
$from = $query->getFrom();
|
||||
unset($from[$this->joinTable]);
|
||||
$query->setFrom($from);
|
||||
$query->setDistinct(false);
|
||||
|
||||
// Use a sub-query as SQLite does not support setting delete targets in
|
||||
// joined queries.
|
||||
|
Loading…
x
Reference in New Issue
Block a user