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

Do not set an ID when adding views handlers.

This commit is contained in:
paul121 2021-04-09 10:13:29 -07:00 committed by Michael Stenta
parent bf3f97d984
commit 78a50470e8

View file

@ -160,7 +160,7 @@ function farm_ui_views_add_bundle_handlers(ViewExecutable $view, string $display
if ($type == 'field') {
$field_options = Views::viewsDataHelper()->fetchFields($table, 'field');
if (isset($field_options[$views_option_name])) {
$view->addHandler($display_id, 'field', $table, $column_name, [], $field_name);
$view->addHandler($display_id, 'field', $table, $column_name, []);
}
}
@ -182,7 +182,7 @@ function farm_ui_views_add_bundle_handlers(ViewExecutable $view, string $display
'entity_type' => $base_entity->id(),
'entity_field' => $field_name,
];
$view->addHandler($display_id, 'filter', $table, $column_name, $filter, $filter['id']);
$view->addHandler($display_id, 'filter', $table, $column_name, $filter);
}
}
}