Steps to reproduce:
go to http://simplytest.me/ , enter wetkit , choose distribution, click test/install, then visit admin/config/regional/entity_translation

an Undefined index error is thrown on line 106 of entity_translation.admin.inc

Presumably a bundle has no label, this throws an Undefined index error on line 106 of entity_translation.admin.inc

/*LINE  95 */    foreach ($bundles as $bundle => $info) {
/*LINE  96 */      if (entity_translation_enabled_bundle($entity_type, $bundle)) {
/*LINE  97 */        $enabled_bundles++;
/*LINE  98 */        $settings = entity_translation_settings($entity_type, $bundle);
/*LINE  99 */        $settings_key = 'entity_translation_settings_' . $entity_type . '__' . $bundle;
/*LINE 100*/        $form['settings'][$entity_type][$settings_key] = array('#tree' => TRUE);
/*LINE 101*/
/*LINE 102*/        // If the entity defines no bundle we do not need the fieldset.
/*LINE 103*/        if (count($bundles) > 1 || $bundle != $entity_type) {
/*LINE 104*/          $form['settings'][$entity_type][$settings_key] += array(
/*LINE 105*/            '#type' => 'fieldset',
/*LINE 106*/            '#title' => $info['label'],
//SNIPPED

Is there some validation that could to be done here to prevent the undefined index error in similar scenarios?

Comments

joseph.olstad’s picture

Issue summary: View changes

clarity enhancement

joseph.olstad’s picture

Issue summary: View changes

clarity enhancement

sylus’s picture

Status: Active » Closed (won't fix)

Closing this as is distribution related and don't want to bog down ET queue.

sylus’s picture

Issue summary: View changes

remove useless tags inside code section