mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01: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(), [
|
||||
'city' => [
|
||||
'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