In beta6 things were changed so that only the terms managed by content_taxonomy were removed from the standard 'vocabularies' fieldset. If all terms are managed, we end up with an empty fieldset right now, so why not unset it if there are no more terms inside? Something like this at the end of content_taxonomy_form_alter?...

    $empty = TRUE;
    foreach ($form['taxonomy'] as $key => &$value) {
      if (is_array($value) && !empty($value)) {
        $empty = FALSE;
      }
    }
    if($empty) unset($form['taxonomy']);

Comments

mh86’s picture

Status: Needs review » Fixed

Hi!
I added the code to the form_alter implementation. So this case is fixed :)
thanks!

markus_petrux’s picture

hmm... it seems that a break; could be added to exit the loop after $empty_fieldset = FALSE; ?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

gease’s picture

Version: 6.x-1.0-beta6 » 6.x-1.0-rc2
Status: Closed (fixed) » Active

If there remains only 1 item in taxonomy fieldset, managed by core taxonomy, the embracing fieldset should be removed as well - consistent with core taxonomy behaviour.