Commit c757570f authored by merlinofchaos's avatar merlinofchaos

#142347: (yhager) Fix Views losing the first taxonomy term on optional vocabularies.

parent d5f7817f
......@@ -240,7 +240,10 @@ function views_taxonomy_form(&$vocabulary) {
$form = taxonomy_form($vocabulary->vid, 0, $vocabulary->help);
unset($form['#title']);
unset($form['#description']);
unset($form['#options'][0]);
if (!$vocabulary->required) {
unset($form['#options'][0]);
}
unset($form['#default_value']);
$form['#multiple'] = TRUE;
}
return $form;
......
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