Switched backend.list.extendRecords event triggering

Made the event triggering for the new backend.list.extendRecords event triggering more consistent with the rest of the class.
This commit is contained in:
Luke Towers 2017-02-14 02:20:23 -06:00 committed by GitHub
parent fd3fbf5e52
commit 9f3c2b8bf6

View File

@ -524,13 +524,11 @@ class Lists extends WidgetBase
$records = $model->get();
}
/*
* Extensibility
*/
if (
($event = $this->fireEvent('list.extendRecords', [$records], true)) ||
($event = Event::fire('backend.list.extendRecords', [$this, $records], true))
) {
if ($event = $this->fireSystemEvent('backend.list.extendRecords', [$records])) {
$records = $event;
}