From 5fb6ff230b9afaaa6fc2094f706e52d6ce68ebd4 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 13 Apr 2017 21:19:10 +0200 Subject: [PATCH] Two small code fixes. --- app/Models/PiggyBank.php | 3 ++- public/js/ff/transactions/single/create.js | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Models/PiggyBank.php b/app/Models/PiggyBank.php index e8b24e60b5..e648623ba4 100644 --- a/app/Models/PiggyBank.php +++ b/app/Models/PiggyBank.php @@ -16,6 +16,7 @@ namespace FireflyIII\Models; use Carbon\Carbon; use Crypt; use Illuminate\Database\Eloquent\Model; +use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\SoftDeletes; use Steam; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; @@ -67,7 +68,7 @@ class PiggyBank extends Model /** * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ - public function account() + public function account(): BelongsTo { return $this->belongsTo('FireflyIII\Models\Account'); } diff --git a/public/js/ff/transactions/single/create.js b/public/js/ff/transactions/single/create.js index 5c10be71d3..5e7af0a536 100644 --- a/public/js/ff/transactions/single/create.js +++ b/public/js/ff/transactions/single/create.js @@ -36,9 +36,7 @@ $(document).ready(function () { function updateCurrency() { // get value: var accountId = $('select[name="source_account_id"]').val(); - console.log('account id is ' + accountId); var currencyPreference = accountInfo[accountId].preferredCurrency; - console.log('currency pref is ' + currencyPreference); $('.currency-option[data-id="' + currencyPreference + '"]').click(); $('[data-toggle="dropdown"]').parent().removeClass('open');