revert 'finish update console only set company for modules..' this commit.
This commit is contained in:
parent
48fb23bb50
commit
c539e011fa
@ -47,19 +47,17 @@ class FinishUpdate extends Command
|
|||||||
throw new \Exception(trans('modules.errors.finish', ['module' => $alias]));
|
throw new \Exception(trans('modules.errors.finish', ['module' => $alias]));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($alias != 'core') {
|
$company = company($company_id);
|
||||||
$company = company($company_id);
|
|
||||||
|
|
||||||
if (empty($company)) {
|
if (empty($company)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$company->makeCurrent();
|
$company->makeCurrent();
|
||||||
|
|
||||||
// Set locale for modules
|
// Set locale for modules
|
||||||
if (empty($company->locale)) {
|
if (($alias != 'core') && !empty($company->locale)) {
|
||||||
app()->setLocale($company->locale);
|
app()->setLocale($company->locale);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disable model cache during update
|
// Disable model cache during update
|
||||||
|
Loading…
x
Reference in New Issue
Block a user