Fix various code things.

This commit is contained in:
James Cole
2023-11-04 19:20:07 +01:00
parent e51fef3037
commit 688f50ee3f
16 changed files with 32 additions and 28 deletions

View File

@@ -57,8 +57,8 @@ class CurrencyUpdateService
if (array_key_exists('decimal_places', $data) && is_int($data['decimal_places'])) {
$currency->decimal_places = (int)$data['decimal_places'];
}
unset($currency->userEnabled);
unset($currency->userDefault);
$currency->userEnabled = null;
$currency->userDefault = null;
$currency->save();
return $currency;