Merge pull request #459 from batuhawk/master
Banking account edit set always default account
This commit is contained in:
commit
3132133ab4
@ -81,7 +81,7 @@ class Accounts extends Controller
|
||||
{
|
||||
$currencies = Currency::enabled()->pluck('name', 'code');
|
||||
|
||||
$account->default_account = ($account->id == setting('general.default_account')) ?: 1;
|
||||
$account->default_account = ($account->id == setting('general.default_account')) ? 1 : 0;
|
||||
|
||||
$currency = Currency::where('code', '=', $account->currency_code)->first();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user