Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fixed a bug where the opening balance could not be stored.
James Cole052b80485536
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 249b91764f..b5e32e6bac 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,10 @@All notable changes to this project will be documented in this file.This project adheres to [Semantic Versioning](http://semver.org/).+## [4.4.2] - 2017-04-27+### Fixed+Fixed a bug where the opening balance could not be stored.+## [4.4.1] - 2017-04-27### Addeddiff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.phpindex 5d25d31fcc..a9e74aa9ef 100644--- a/app/Repositories/Account/AccountRepository.php+++ b/app/Repositories/Account/AccountRepository.php@@ -625,9 +625,7 @@ class AccountRepository implements AccountRepositoryInterface*/protected function validOpeningBalanceData(array $data): bool{- if (isset($data['openingBalance'])- && isset($data['openingBalanceDate'])- && isset($data['openingBalanceCurrency'])+ if (isset($data['openingBalance']) && isset($data['openingBalanceDate'])&& bccomp(strval($data['openingBalance']), '0') !== 0) {Log::debug('Array has valid opening balance data.');