fix
This commit is contained in:
parent
5e4288f05e
commit
94411fa318
@ -351,9 +351,8 @@ trait Crud
|
|||||||
$formatted_items = [];
|
$formatted_items = [];
|
||||||
foreach ($items as $item) {
|
foreach ($items as $item) {
|
||||||
$formatted_items[] = [
|
$formatted_items[] = [
|
||||||
'title' => $item->title ?? $item->name ?? $item->id,
|
'label' => $item->title ?? $item->name ?? $item->id,
|
||||||
'value' => $item->id,
|
'value' => $item->id
|
||||||
'key' => $item->id,
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
return $this->json(0, 'ok', $formatted_items);
|
return $this->json(0, 'ok', $formatted_items);
|
||||||
|
Loading…
Reference in New Issue
Block a user