From 925ea5109a752a821437504f4983cd3b33715d26 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 26 Jul 2018 17:37:50 +0300 Subject: [PATCH] Fix for new mobile app --- app/Libraries/Utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Libraries/Utils.php b/app/Libraries/Utils.php index f0112cc52f24..41e013b25b67 100644 --- a/app/Libraries/Utils.php +++ b/app/Libraries/Utils.php @@ -515,7 +515,7 @@ class Utils $industry->name = trans('texts.industry_'.$industry->name); })->sortBy(function ($industry) { return $industry->name; - }); + })->values(); $data['countries'] = Cache::get('countries')->each(function ($country) { $country->name = trans('texts.country_'.$country->name); @@ -533,7 +533,7 @@ class Utils $lang->name = trans('texts.lang_'.$lang->name); })->sortBy(function ($lang) { return $lang->name; - }); + })->values(); $data['currencies'] = Cache::get('currencies')->each(function ($currency) { $currency->name = trans('texts.currency_' . \Str::slug($currency->name, '_'));