Also remove custom sorts from relationcontroller lists / pivot manage modes.
Fixes https://github.com/octobercms/october/issues/4335#issuecomment-643706004, refs: 5f8a5454ee
This commit is contained in:
parent
b7d9bd1ca6
commit
24f87ae10e
|
|
@ -856,8 +856,11 @@ class RelationController extends ControllerBehavior
|
|||
});
|
||||
}
|
||||
else {
|
||||
$widget->bindEvent('list.extendQueryBefore', function ($query) {
|
||||
$widget->bindEvent('list.extendQueryBefore', function ($query) use ($widget) {
|
||||
$this->relationObject->addDefinedConstraintsToQuery($query);
|
||||
if ($widget->getSortColumn()) {
|
||||
$query->getQuery()->orders = [];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue