parent
b572382de7
commit
c3570ffd7e
|
|
@ -1018,11 +1018,19 @@ class Form extends WidgetBase
|
|||
*/
|
||||
protected function applyFiltersFromModel()
|
||||
{
|
||||
/*
|
||||
* Standard usage
|
||||
*/
|
||||
if (method_exists($this->model, 'filterFields')) {
|
||||
$this->model->filterFields((object) $this->allFields, $this->getContext());
|
||||
}
|
||||
|
||||
$this->model->fireEvent('model.form.filterFields', [$this]);
|
||||
/*
|
||||
* Advanced usage
|
||||
*/
|
||||
if (method_exists($this->model, 'fireEvent')) {
|
||||
$this->model->fireEvent('model.form.filterFields', [$this]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue