Commit a49b6582 authored by merlinofchaos's avatar merlinofchaos
Browse files

#126428: (by scott.mclewin) Force single didn't work in all cases.

parent 126af8dc
......@@ -31,6 +31,7 @@ Views --dev
o #104941: Inline args URL cache not getting cleared when a view is saved.
o #124789: Disable delete button on filters that have been exposed so people stop trying to delete them.
o #101275: Fixed broken check which is meant to prevent node.nid from appearing twice in a query.
o #126428: (by scott.mclewin) Force single didn't work in all cases.
New features:
o #105620: (Attempt 2) allow modules to alter views tables + arguments
......
......@@ -1254,7 +1254,9 @@ function views_filters($view) {
}
if ($expose['single']) {
unset($item['#multiple']);
unset($item['#multiple']);
// On multi-select categories the #size element is in the form by default. We remove it to allow the single-select drop-down filter to work.
unset($item['#size']);
}
if ($expose['optional'] && is_array($item['#options'])) {
$item['#options'] = array('**ALL**' => t('<All>')) + $item['#options'];
......
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