Fixed a bug where the target date and start date could not be null [skip ci]

This commit is contained in:
James Cole
2014-08-17 08:57:08 +02:00
parent e4f04583a3
commit 372189a107
2 changed files with 13 additions and 4 deletions

View File

@@ -129,6 +129,9 @@ class EloquentPiggybankRepository implements PiggybankRepositoryInterface
if ($data['reminder'] == 'none') {
unset($data['reminder']);
}
if($data['startdate'] == '') {
unset($data['startdate']);
}
/** @var \Firefly\Storage\Account\AccountRepositoryInterface $accounts */
$accounts = \App::make('Firefly\Storage\Account\AccountRepositoryInterface');