Merge branch 'release/4.4.2'

This commit is contained in:
James Cole 2017-04-27 07:45:50 +02:00
commit 552b4b67a6
3 changed files with 6 additions and 4 deletions

View File

@ -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
### Added

View File

@ -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.');

View File

@ -23,7 +23,7 @@ return [
'is_demo_site' => false,
],
'encryption' => (is_null(env('USE_ENCRYPTION')) || env('USE_ENCRYPTION') === true),
'version' => '4.4.1',
'version' => '4.4.2',
'maxUploadSize' => 5242880,
'allowedMimes' => ['image/png', 'image/jpeg', 'application/pdf'],
'list_length' => 10,