Merge pull request #4014 from devansh-webkul/locale_switching_issue

Fixed trying to get property of non object #3967
This commit is contained in:
Jitendra Singh 2020-10-07 12:29:43 +05:30 committed by GitHub
commit 45975e8498
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -153,6 +153,10 @@ class ChannelController extends Controller
$channel = $this->channelRepository->update($data, $id);
if ($channel->base_currency->code !== session()->get('currency')) {
session()->put('currency', $channel->base_currency->code);
}
Event::dispatch('core.channel.update.after', $channel);
session()->flash('success', trans('admin::app.settings.channels.update-success'));