mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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…
x
Reference in New Issue
Block a user