From bd2f9d9f38781a08aa8fa4c3fb9b640a9aa8275e Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 8 Jul 2019 12:18:42 +0200 Subject: [PATCH] #2868 --- src/app/Magic/Fields/Country.php | 2 +- src/app/Magic/Models/Locale.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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', -- 2.39.5