Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
node_subpages.admin_.inc_.patch | 506 bytes | bander2 |
Comments
Comment #1
BrockBoland CreditAttribution: BrockBoland commentedI 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