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