Skip to content
Snippets Groups Projects
Commit 3cc0da86 authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#38278 by edkwh and Kjartan. Don't offer the impossible option of filtering on...

#38278 by edkwh and Kjartan. Don't offer the impossible option of filtering on nodes with two types.
parent 6466ee04
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1333,6 +1333,10 @@ function node_filter_form() { ...@@ -1333,6 +1333,10 @@ function node_filter_form() {
$value = module_invoke('taxonomy', 'get_term', $value); $value = module_invoke('taxonomy', 'get_term', $value);
$value = $value->name; $value = $value->name;
} }
else if ($type == 'type') {
// Remove the type option if it is already being filtered on.
unset($filters['type']);
}
else { else {
$value = $filters[$type]['options'][$value]; $value = $filters[$type]['options'][$value];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment