From 6fb4aaecd32188c0816d7afaed78145df23ff365 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 6 Jan 2024 11:09:40 +0100 Subject: [PATCH 1/2] Fix a very dumb bug. --- app/Validation/CurrencyValidation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Validation/CurrencyValidation.php b/app/Validation/CurrencyValidation.php index 8ccce10cd3..52bad8ff61 100644 --- a/app/Validation/CurrencyValidation.php +++ b/app/Validation/CurrencyValidation.php @@ -74,7 +74,7 @@ trait CurrencyValidation continue; } - $compare = bccomp('0', $transaction['foreign_amount']); + $compare = bccomp('0', $foreignAmount); if (-1 === $compare) { Log::debug('validateForeignCurrencyInformation: array contains foreign amount info.'); if (!array_key_exists('foreign_currency_id', $transaction) && !array_key_exists('foreign_currency_code', $transaction)) { From de57ab087451610fdc04c824e6a78945429c74dc Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 6 Jan 2024 11:11:18 +0100 Subject: [PATCH 2/2] Update meta files for new release. --- changelog.md | 6 ++++++ config/firefly.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index bb9c33e17d..0aa2b0f324 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## 6.1.6 - 2024-01-07 + +### Fixed + +- Type validation error + ## 6.1.5 - 2024-01-07 ### Added diff --git a/config/firefly.php b/config/firefly.php index 60b1313683..bc1bbfb35c 100644 --- a/config/firefly.php +++ b/config/firefly.php @@ -115,7 +115,7 @@ return [ 'handle_debts' => true, // see cer.php for exchange rates feature flag. ], - 'version' => '6.1.5', + 'version' => '6.1.6', 'api_version' => '2.0.12', 'db_version' => 22,