close #772 Fixed: New install will not allow cash account to change currency

This commit is contained in:
cuneytsenturk 2019-03-26 17:49:05 +03:00
parent 20d73a8edb
commit 8cd10cd58f

View File

@ -107,7 +107,7 @@ class Accounts extends Controller
'payments' => 'payments',
]);
if ($account->id == setting('general.default_account')) {
if (!$request['enabled'] && $account->id == setting('general.default_account')) {
$relationships[] = strtolower(trans_choice('general.companies', 1));
}
}