From a5af7b311f422fdf69177ec5436976bdb3435a71 Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Tue, 15 Mar 2016 02:00:05 +0100 Subject: [PATCH] Fixed regresssion in I18nField --- src/CoreFields/I18nField.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/CoreFields/I18nField.php b/src/CoreFields/I18nField.php index b817f3f..80cdb41 100644 --- a/src/CoreFields/I18nField.php +++ b/src/CoreFields/I18nField.php @@ -15,7 +15,6 @@ use PhangoApp\PhaI18n\I18n; use PhangoApp\PhaModels\Forms\MultiLangForm; use PhangoApp\PhaModels\Forms\TextForm; use PhangoApp\PhaModels\CoreFields\SlugifyField; -use PhangoApp\PhaModels\CoreFields\TextField; /** * Multilanguage fields. @@ -37,10 +36,10 @@ class I18nField extends PhangoField { //This method is used for check all members from serialize - function __construct() + function __construct($type_field) { - $this->type_field=new TextField(); + $this->type_field=&$type_field; $this->parameters=[]; }