Merge pull request #459 from batuhawk/master

Banking account edit set always default account
This commit is contained in:
Cüneyt Şentürk 2018-08-29 14:44:29 +03:00 committed by GitHub
commit 3132133ab4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();