3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Fix Notice: Undefined index: region in farm_ui_views_add_bundle_handlers().

This commit is contained in:
Michael Stenta 2021-05-20 18:14:21 -04:00
parent e26a30e8d7
commit 5df960aab6

View file

@ -158,7 +158,7 @@ function farm_ui_views_add_bundle_handlers(ViewExecutable $view, string $display
// Skip the bundle field if the view display was set as "hidden".
$view_options = $field_definition->getDisplayOptions('view');
if (empty($view_options) || $view_options['region'] == 'hidden') {
if (empty($view_options) || (!empty($view_options['region']) && $view_options['region'] == 'hidden')) {
continue;
}