Why is my vocab fieldset suddenly collapsed by default. Before it was expanded... How do I turn it back to expanded?

Comments

Flying Drupalist’s picture

Please help!

talktozee’s picture

Did you happen to find a solution to this? I'm having the same problem.

jannalexx’s picture

Vocabulary Fieldset default collapsed?
This happened in forums content type only here and only when new vocabularies added after main forum topic selection vocabulary

wOOge’s picture

In the Vocabulary's settings, change it to "Required" and the fieldset will be expanded by default.

--
wOOge | adrianjean.ca

derp’s picture

I am actually trying to collapse all vocabularies by default. how would one achieve that? (none of the vocabularies are required)

/derp

derp’s picture

for now i took the easy way out by changing the taxonomy module

    if (!empty($form['taxonomy']) && is_array($form['taxonomy'])) {
      if (count($form['taxonomy']) > 1) {
        // Add fieldset only if form has more than 1 element.
        $form['taxonomy'] += array(
          '#type' => 'fieldset',
          '#title' => t('Vocabularies'),
          '#collapsible' => TRUE,
          '#collapsed' => TRUE, 
        );
      }
      $form['taxonomy']['#weight'] = -3;
      $form['taxonomy']['#tree'] = TRUE;
    }

hope this helps anyone.