create_onSave() forgot to extend model

This commit is contained in:
Samuel Georges 2016-02-23 14:36:00 +11:00
parent ff52ad6595
commit ce202c7951
1 changed files with 3 additions and 0 deletions

View File

@ -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);