mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Add name and type to allowed default fields.
This commit is contained in:
parent
85efcaf324
commit
dbc2245d22
|
@ -60,7 +60,7 @@ function farm_ui_map_asset_view(array &$build, EntityInterface $entity, EntityVi
|
|||
// The default view mode is used if a map_popup view mode is not provided.
|
||||
// Alter the default view mode to only include common fields.
|
||||
if ($display->getMode() === 'default') {
|
||||
$common_fields = ['flag', 'notes', 'location'];
|
||||
$common_fields = ['name', 'type', 'flag', 'notes', 'location'];
|
||||
$build = array_filter($build, function ($key) use ($common_fields) {
|
||||
return strpos($key, '#') === 0 || in_array($key, $common_fields);
|
||||
}, ARRAY_FILTER_USE_KEY);
|
||||
|
|
Loading…
Reference in a new issue