I've noticed a problem when you create a non-collapsible sub-fieldset within a collapsible one. The sub-fieldset remains collapsible as its parent. I've tried to reproduce an example of a buggy code:

  $form['parent'] = array(
    '#type' => 'fieldset',
    '#title' => t('Parent'),
    '#collapsed' => TRUE,
    '#collapsible' => TRUE,
  );
  
  $form['parent']['child'] = array(
    '#type' => 'fieldset',
    //'#title' => t('Child'),
    '#collapsible' => FALSE, // XXX: this does not work
    '#collapsed' => FALSE,
    '#description' => t('Child')
  );  

Comments

ricabrantes’s picture

Version: 4.7.4 » 7.x-dev

any news about this?

LAsan’s picture

Status: Active » Fixed

Fixed in 5.x-dev.

ricabrantes’s picture

Version: 7.x-dev » 5.x-dev

moving to correct version..

Anonymous’s picture

Status: Fixed » Closed (fixed)

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