Commit a3c5b598 authored by merlinofchaos's avatar merlinofchaos

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

parent 2b22e19d
......@@ -27,6 +27,7 @@ Views 4.7.x-dev
o #124789: Disable delete button on filters that have been exposed so people stop trying to delete them.
o #126135: Restore missing views_pre_query (may never have made it into this version?)
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
......
......@@ -1486,7 +1486,9 @@ function views_filters_form($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