mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 01:42:19 +00:00
Rename field to "notes"
This commit is contained in:
@@ -57,7 +57,7 @@ class PiggyBankRequest extends Request
|
|||||||
'current_amount' => $this->string('current_amount'),
|
'current_amount' => $this->string('current_amount'),
|
||||||
'start_date' => $this->date('start_date'),
|
'start_date' => $this->date('start_date'),
|
||||||
'target_date' => $this->date('target_date'),
|
'target_date' => $this->date('target_date'),
|
||||||
'note' => $this->string('notes'),
|
'notes' => $this->string('notes'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -208,7 +208,7 @@ class PiggyBankController extends Controller
|
|||||||
'targetamount' => $piggyBank->targetamount,
|
'targetamount' => $piggyBank->targetamount,
|
||||||
'targetdate' => $targetDate,
|
'targetdate' => $targetDate,
|
||||||
'startdate' => $startDate,
|
'startdate' => $startDate,
|
||||||
'note' => null === $note ? '' : $note->text,
|
'notes' => null === $note ? '' : $note->text,
|
||||||
];
|
];
|
||||||
session()->flash('preFilled', $preFilled);
|
session()->flash('preFilled', $preFilled);
|
||||||
|
|
||||||
|
@@ -451,7 +451,7 @@ class PiggyBankRepository implements PiggyBankRepositoryInterface
|
|||||||
/** @var PiggyBank $piggyBank */
|
/** @var PiggyBank $piggyBank */
|
||||||
$piggyBank = PiggyBank::create($data);
|
$piggyBank = PiggyBank::create($data);
|
||||||
|
|
||||||
$this->updateNote($piggyBank, $data['note']);
|
$this->updateNote($piggyBank, $data['notes']);
|
||||||
|
|
||||||
// repetition is auto created.
|
// repetition is auto created.
|
||||||
$repetition = $this->getRepetition($piggyBank);
|
$repetition = $this->getRepetition($piggyBank);
|
||||||
@@ -479,7 +479,7 @@ class PiggyBankRepository implements PiggyBankRepositoryInterface
|
|||||||
|
|
||||||
$piggyBank->save();
|
$piggyBank->save();
|
||||||
|
|
||||||
$this->updateNote($piggyBank, $data['note']);
|
$this->updateNote($piggyBank, $data['notes']);
|
||||||
|
|
||||||
// if the piggy bank is now smaller than the current relevant rep,
|
// if the piggy bank is now smaller than the current relevant rep,
|
||||||
// remove money from the rep.
|
// remove money from the rep.
|
||||||
|
@@ -31,7 +31,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ ExpandedForm.date('targetdate') }}
|
{{ ExpandedForm.date('targetdate') }}
|
||||||
{{ ExpandedForm.textarea('note', null, {helpText: trans('firefly.field_supports_markdown')} ) }}
|
{{ ExpandedForm.textarea('notes', null, {helpText: trans('firefly.field_supports_markdown')} ) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@@ -34,7 +34,7 @@
|
|||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ ExpandedForm.date('startdate') }}
|
{{ ExpandedForm.date('startdate') }}
|
||||||
{{ ExpandedForm.date('targetdate') }}
|
{{ ExpandedForm.date('targetdate') }}
|
||||||
{{ ExpandedForm.textarea('note', null, {helpText: trans('firefly.field_supports_markdown')}) }}
|
{{ ExpandedForm.textarea('notes', null, {helpText: trans('firefly.field_supports_markdown')}) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user