mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 15:26:10 -06:00
fix name object problem
This commit is contained in:
parent
810b90ec13
commit
5ee0de7bb7
@ -15,7 +15,8 @@ class AdressController extends AdminController
|
|||||||
$table->setColumns(array_merge($table->getColumns(), [
|
$table->setColumns(array_merge($table->getColumns(), [
|
||||||
'city' => [
|
'city' => [
|
||||||
'value' => function (EntryInterface $entry, CityRepositoryInterface $cityRepository) {
|
'value' => function (EntryInterface $entry, CityRepositoryInterface $cityRepository) {
|
||||||
return $cityRepository->find($entry->city)->name;
|
$city = $cityRepository->find($entry->city);
|
||||||
|
return ($city) ? $city->name : '-';
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
]));
|
]));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user