Pass records by reference to overcome halting event issue

Refs https://github.com/octobercms/october/pull/1853
This commit is contained in:
Samuel Georges 2017-02-15 05:58:44 +11:00
parent 09085c5e03
commit d9a2b88852

View File

@ -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;
}