From: Vincent Vanwaelscappel Date: Mon, 8 Jul 2019 10:18:42 +0000 (+0200) Subject: #2868 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=bd2f9d9f38781a08aa8fa4c3fb9b640a9aa8275e;p=cubist_cms-back.git #2868 --- diff --git a/src/app/Magic/Fields/Country.php b/src/app/Magic/Fields/Country.php index 2b3507b..1aede72 100644 --- a/src/app/Magic/Fields/Country.php +++ b/src/app/Magic/Fields/Country.php @@ -13,7 +13,7 @@ class Country extends Locale */ protected function _getLocales() { - $list = Cubist\Locale\Country::getList(App::getLocale()); + $list = \Cubist\Locale\Country::getList(App::getLocale()); $res = []; foreach ($list as $code => $name) { diff --git a/src/app/Magic/Models/Locale.php b/src/app/Magic/Models/Locale.php index ff0f2b2..26ecb32 100644 --- a/src/app/Magic/Models/Locale.php +++ b/src/app/Magic/Models/Locale.php @@ -22,7 +22,7 @@ class Locale extends CubistMagicModel 'column' => true]); $this->addField(['name' => 'flag', - 'type' => 'Locale', + 'type' => 'Country', 'label' => 'Drapeau']); $this->addField(['name' => 'inherit',