From c539e011fa70fd0ec3283e492002b496b7b6f5cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 2 Mar 2022 19:03:06 +0300 Subject: [PATCH] revert 'finish update console only set company for modules..' this commit. --- app/Console/Commands/FinishUpdate.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/app/Console/Commands/FinishUpdate.php b/app/Console/Commands/FinishUpdate.php index 0635dea21..93dd42e33 100644 --- a/app/Console/Commands/FinishUpdate.php +++ b/app/Console/Commands/FinishUpdate.php @@ -47,19 +47,17 @@ class FinishUpdate extends Command throw new \Exception(trans('modules.errors.finish', ['module' => $alias])); } - if ($alias != 'core') { - $company = company($company_id); + $company = company($company_id); - if (empty($company)) { - return; - } + if (empty($company)) { + return; + } - $company->makeCurrent(); + $company->makeCurrent(); - // Set locale for modules - if (empty($company->locale)) { - app()->setLocale($company->locale); - } + // Set locale for modules + if (($alias != 'core') && !empty($company->locale)) { + app()->setLocale($company->locale); } // Disable model cache during update