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();

View File

@ -81,7 +81,7 @@
{% endif %}
</td>
<td class="hidden-sm hidden-xs" style="text-align:right;">
{% if piggy.targetdate %}
{% if piggy.target_date %}
{{ formatAmountBySymbol(piggy.save_per_month, piggy.currency_symbol, piggy.currency_dp) }}
{% endif %}
</td>