Closed (fixed)
Project:
Custom Node Template
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Dec 2009 at 12:28 UTC
Updated:
2 Feb 2010 at 11:00 UTC
When you select a default template in the content type settings the it will be stored correctly but the gui does not show the selected value.
I changed the following line in the function 'custom_node_template_form_node_type_form_alter':
$nodetemplate = $form['#node']->nodetemplate;
$nodetemplate = variable_get('nodetemplate_' . $form['#node_type']->type, 'default');
I don’t know if it’s correct, but it works in my case.
Comments
Comment #1
WebNewCastle commentedThanks for posting this. I'm sorry I haven't had time with the holidays and other things to look at this yet - I will try to find time to do so soon.
Comment #2
WebNewCastle commentedHi Tekl,
Sorry for the delay. I tested this out and find the issue you indicated. And your suggestion above seems to rectify the issue. I committed the change and it should show in the next update of the dev version.
Thanks again,