mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Pass records by reference to overcome halting event issue
Refs https://github.com/octobercms/october/pull/1853
This commit is contained in:
parent
09085c5e03
commit
d9a2b88852
@ -524,11 +524,10 @@ class Lists extends WidgetBase
|
||||
$records = $model->get();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Extensibility
|
||||
*/
|
||||
if ($event = $this->fireSystemEvent('backend.list.extendRecords', [$records])) {
|
||||
if ($event = $this->fireSystemEvent('backend.list.extendRecords', [&$records])) {
|
||||
$records = $event;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user