Fixes empty reference when using Form widget outside FormController
This commit is contained in:
parent
aaffeacf1d
commit
0243f47651
|
|
@ -197,7 +197,7 @@ class Form extends WidgetBase
|
|||
*/
|
||||
public function renderFieldElement($field)
|
||||
{
|
||||
return $this->makePartial('field_'.$field->type, ['field' => $field]);
|
||||
return $this->makePartial('field_'.$field->type, ['field' => $field, 'formModel' => $this->model]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue