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:
parent
fd3fbf5e52
commit
9f3c2b8bf6
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue