The reproduce, set up a subpage, then go back and edit it. You'll find the selection (for me it's between Field and View) is lost.

The problem is on line 240 of node_subpage.admin.inc:

$form['data_source'][$plugin_key]['enable'] = array(
      '#type' => 'radio',
      '#title' => $plugin['title'],
      '#description' => $plugin['description'],
      '#return_value' => $plugin_key,
      '#default_value' => ($plugin_key == $defaults['plugin']), // Here's our problem
    );

#default_value will always be false because $defaults['plugin'] is an array. I think we want $defaults['plugin']['name']

I've attached a patch.

CommentFileSizeAuthor
node_subpages.admin_.inc_.patch506 bytesbander2
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

BrockBoland’s picture

Status: Active » Fixed

I fixed this in a commit back in June (26a4c2a) but never cut a new release because I was still working on Features support. That's pretty stable at this point, and I haven't had time to work on it in a while anyway, so I went ahead and released beta3: http://drupal.org/node/1892460

Status: Fixed » Closed (fixed)

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