Little fixes in serializefield and multilangform

This commit is contained in:
Antonio de la Rosa 2016-02-11 04:27:15 +01:00
parent 6e12c3eea3
commit 0e0adcb05f
2 changed files with 18 additions and 5 deletions

View file

@ -11,10 +11,10 @@ class MultiLangForm extends BaseForm{
public $type_form;
public function __construct($name, $value)
public function __construct($name, $value, $type_form='PhangoApp\PhaModels\Forms\BaseForm')
{
$this->type_form=new BaseForm($name, $value);
$this->type_form=new $type_form($name, $value);
parent::__construct($name, $value);