Commit 3cc0da86 authored by drumm's avatar drumm
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
......@@ -1333,6 +1333,10 @@ function node_filter_form() {
$value = module_invoke('taxonomy', 'get_term', $value);
$value = $value->name;
}
else if ($type == 'type') {
// Remove the type option if it is already being filtered on.
unset($filters['type']);
}
else {
$value = $filters[$type]['options'][$value];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment