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:
parent
bf3f97d984
commit
78a50470e8
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue