This commit is contained in:
James Cole
2018-07-22 09:03:53 +02:00
parent b705240faa
commit 1f0fdf3da7
2 changed files with 2 additions and 2 deletions

View File

@@ -501,7 +501,7 @@ class PiggyBankRepository implements PiggyBankRepositoryInterface
$piggyBank->name = $data['name'];
$piggyBank->account_id = (int)$data['account_id'];
$piggyBank->targetamount = $data['targetamount'];
$piggyBank->targetdate = $data['targetdate'] ?? $piggyBank->targetdate;
$piggyBank->targetdate = $data['targetdate'];
$piggyBank->startdate = $data['startdate'] ?? $piggyBank->startdate;
$piggyBank->save();