From 9eb0cc24aefef2ffcd54c08dba0a640d6d602106 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 17 Jun 2017 21:20:34 +1000 Subject: [PATCH] Opens a channel for model to talk with form widget .. and controller and beyond. --- modules/backend/widgets/Form.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/backend/widgets/Form.php b/modules/backend/widgets/Form.php index 3c0a43cb7..8a34c8521 100644 --- a/modules/backend/widgets/Form.php +++ b/modules/backend/widgets/Form.php @@ -1021,6 +1021,8 @@ class Form extends WidgetBase if (method_exists($this->model, 'filterFields')) { $this->model->filterFields((object) $this->allFields, $this->getContext()); } + + $this->model->fireEvent('model.form.filterFields', [$this]); } /**