Add sort to language.

This commit is contained in:
James Cole 2020-03-16 06:53:10 +01:00
parent 08b69dfbf6
commit a478d1b544
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -92,6 +92,8 @@ class PreferencesController extends Controller
$fiscalYearStart = date('Y') . '-' . $fiscalYearStartStr;
$tjOptionalFields = app('preferences')->get('transaction_journal_optional_fields', [])->data;
ksort($language);
// an important fallback is that the frontPageAccount array gets refilled automatically
// when it turns up empty.
if (0 === count($frontPageAccounts->data)) {