Merge pull request #4539 from turbo124/v5-develop

Fixes for seeding countries
This commit is contained in:
David Bomba 2020-12-21 09:48:56 +11:00 committed by GitHub
commit 31df96b8c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -195,10 +195,10 @@ class CountriesSeeder extends Seeder
$country->swap_currency_symbol = true; $country->swap_currency_symbol = true;
} }
if (isset($data['thousand_separator'])) { if (isset($data['thousand_separator'])) {
$country->thousand_separator = $data['thousand_separator']; $country->thousand_separator = $data['thousand_separator'] ?: '';
} }
if (isset($data['decimal_separator'])) { if (isset($data['decimal_separator'])) {
$country->decimal_separator = $data['decimal_separator']; $country->decimal_separator = $data['decimal_separator'] ?: '';
} }
$country->save(); $country->save();
} }

View File

@ -3329,5 +3329,7 @@ return [
'setup_steps_notice' => 'To proceed to next step, make sure you test each section.', 'setup_steps_notice' => 'To proceed to next step, make sure you test each section.',
'setup_phantomjs_note' => 'Note about Phantom JS. Read more.' 'setup_phantomjs_note' => 'Note about Phantom JS. Read more.',
'currency_armenian_dram' => 'Armenian Dram',
]; ];