From ce202c7951918ebb815e85260565dccdf8d6a7e6 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Tue, 23 Feb 2016 14:36:00 +1100 Subject: [PATCH] create_onSave() forgot to extend model --- modules/backend/behaviors/FormController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/backend/behaviors/FormController.php b/modules/backend/behaviors/FormController.php index 9f40933eb..b7e30f245 100644 --- a/modules/backend/behaviors/FormController.php +++ b/modules/backend/behaviors/FormController.php @@ -201,7 +201,10 @@ class FormController extends ControllerBehavior public function create_onSave($context = null) { $this->context = strlen($context) ? $context : $this->getConfig('create[context]', self::CONTEXT_CREATE); + $model = $this->controller->formCreateModelObject(); + $model = $this->controller->formExtendModel($model); + $this->initForm($model); $this->controller->formBeforeSave($model);