mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-07 06:33:57 -06:00
Fix a bug where you cannot edit transactions. Will warrant a new release of FF.
This commit is contained in:
parent
18c46df9aa
commit
f263844793
@ -174,7 +174,7 @@ class JournalRepository implements JournalRepositoryInterface
|
|||||||
[
|
[
|
||||||
'user_id' => $data['user'],
|
'user_id' => $data['user'],
|
||||||
'transaction_type_id' => $transactionType->id,
|
'transaction_type_id' => $transactionType->id,
|
||||||
'transaction_currency_id' => $data['amount_currency_id_amount'],
|
'amount_currency_id_amount' => $data['amount_currency_id_amount'],
|
||||||
'description' => $data['description'],
|
'description' => $data['description'],
|
||||||
'completed' => 0,
|
'completed' => 0,
|
||||||
'date' => $data['date'],
|
'date' => $data['date'],
|
||||||
@ -236,7 +236,7 @@ class JournalRepository implements JournalRepositoryInterface
|
|||||||
public function update(TransactionJournal $journal, array $data)
|
public function update(TransactionJournal $journal, array $data)
|
||||||
{
|
{
|
||||||
// update actual journal.
|
// update actual journal.
|
||||||
$journal->transaction_currency_id = $data['amount_currency_id'];
|
$journal->transaction_currency_id = $data['amount_currency_id_amount'];
|
||||||
$journal->description = $data['description'];
|
$journal->description = $data['description'];
|
||||||
$journal->date = $data['date'];
|
$journal->date = $data['date'];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user