Fixes #481 - Native widget handlers should still initialize

This commit is contained in:
Sam Georges 2014-07-29 19:22:18 +10:00
parent 200615f310
commit 3c1e6ea846
1 changed files with 3 additions and 0 deletions

View File

@ -154,6 +154,9 @@ class RelationController extends ControllerBehavior
*/
public function initRelation($model, $field = null)
{
if ($field == null)
$field = post(self::PARAM_FIELD);
$this->config = $this->originalConfig;
$this->model = $model;
$this->field = $field;