mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-20 21:35:05 +00:00
Rename recurrence_repetitions and nr_of_repetitions.
This commit is contained in:
@@ -94,23 +94,23 @@ class RecurrenceTransformer extends AbstractTransformer
|
|||||||
|
|
||||||
// basic data.
|
// basic data.
|
||||||
$return = [
|
$return = [
|
||||||
'id' => (int)$recurrence->id,
|
'id' => (int)$recurrence->id,
|
||||||
'created_at' => $recurrence->created_at->toAtomString(),
|
'created_at' => $recurrence->created_at->toAtomString(),
|
||||||
'updated_at' => $recurrence->updated_at->toAtomString(),
|
'updated_at' => $recurrence->updated_at->toAtomString(),
|
||||||
'type' => $shortType,
|
'type' => $shortType,
|
||||||
'title' => $recurrence->title,
|
'title' => $recurrence->title,
|
||||||
'description' => $recurrence->description,
|
'description' => $recurrence->description,
|
||||||
'first_date' => $recurrence->first_date->format('Y-m-d'),
|
'first_date' => $recurrence->first_date->format('Y-m-d'),
|
||||||
'latest_date' => null === $recurrence->latest_date ? null : $recurrence->latest_date->format('Y-m-d'),
|
'latest_date' => null === $recurrence->latest_date ? null : $recurrence->latest_date->format('Y-m-d'),
|
||||||
'repeat_until' => null === $recurrence->repeat_until ? null : $recurrence->repeat_until->format('Y-m-d'),
|
'repeat_until' => null === $recurrence->repeat_until ? null : $recurrence->repeat_until->format('Y-m-d'),
|
||||||
'apply_rules' => $recurrence->apply_rules,
|
'apply_rules' => $recurrence->apply_rules,
|
||||||
'active' => $recurrence->active,
|
'active' => $recurrence->active,
|
||||||
'repetitions' => $recurrence->repetitions,
|
'nr_of_repetitions' => $recurrence->repetitions,
|
||||||
'notes' => $this->repository->getNoteText($recurrence),
|
'notes' => $this->repository->getNoteText($recurrence),
|
||||||
'recurrence_repetitions' => $this->getRepetitions($recurrence),
|
'repetitions' => $this->getRepetitions($recurrence),
|
||||||
'transactions' => $this->getTransactions($recurrence),
|
'transactions' => $this->getTransactions($recurrence),
|
||||||
'meta' => $this->getMeta($recurrence),
|
'meta' => $this->getMeta($recurrence),
|
||||||
'links' => [
|
'links' => [
|
||||||
[
|
[
|
||||||
'rel' => 'self',
|
'rel' => 'self',
|
||||||
'uri' => '/recurring/' . $recurrence->id,
|
'uri' => '/recurring/' . $recurrence->id,
|
||||||
|
|||||||
Reference in New Issue
Block a user