Línea 106... |
Línea 106... |
106 |
$items = [];
|
106 |
$items = [];
|
107 |
$records = $paginator->getCurrentItems();
|
107 |
$records = $paginator->getCurrentItems();
|
108 |
foreach($records as $record)
|
108 |
foreach($records as $record)
|
109 |
{
|
109 |
{
|
110 |
$item = [
|
110 |
$item = [
|
111 |
'id' => $record->id,
|
111 |
'id' => $record->uuid,
|
112 |
'name' => $record->name,
|
112 |
'name' => $record->name,
|
113 |
'description' => $record->description,
|
113 |
'description' => $record->description,
|
114 |
'actions' => [
|
114 |
'actions' => [
|
115 |
'link_edit' => $allowEdit ? $this->url()->fromRoute('habits/goals/edit', ['id' => $record->uuid ], ['force_canonical' => true]) : '',
|
115 |
'link_edit' => $allowEdit ? $this->url()->fromRoute('habits/goals/edit', ['id' => $record->uuid ], ['force_canonical' => true]) : '',
|
116 |
'link_delete' => $allowDelete ? $this->url()->fromRoute('habits/goals/delete', ['id' =>$record->uuid ], ['force_canonical' => true]) : '',
|
116 |
'link_delete' => $allowDelete ? $this->url()->fromRoute('habits/goals/delete', ['id' =>$record->uuid ], ['force_canonical' => true]) : '',
|