close #2590 Enhancement: During setup, it's impossible to modify the default currency

This commit is contained in:
Cüneyt Şentürk
2022-09-05 17:28:06 +03:00
parent 05aa6a84c3
commit cf565f55e0
3 changed files with 40 additions and 13 deletions

View File

@ -91,6 +91,8 @@ class Currencies extends Controller
{
$response = $this->ajaxDispatch(new UpdateCurrency($currency, $request));
$currency->default = setting('default.currency') == $currency->code;
if ($response['success']) {
$message = trans('messages.success.updated', ['type' => $currency->name]);
} else {