Item14896: newtopic.nat.tmpl does not submit selected template
Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release:
Applies To: Extension
Component: NatSkin
Branches:
When creating a new topic in natskin the selected template is not submitted via form and not used.
This patch solves the problem for me:
--- newtopic.nat.tmpl.orig 2019-02-14 10:13:13.000000000 +0100
+++ newtopic.nat.tmpl 2020-03-11 11:42:59.187422786 +0100
@@ -214,7 +214,7 @@
<th>%TMPL:P{"topiccreator::inputform::templates::title"}%:</th>
<td>%DBQUERY{
"topic=~'Template$' AND topic!~'(View|Edit)Template\b' AND TopicType!~'\bTopicTemplate\b' AND topic!~'^(TopicTemplate|WebTopicEditTemplate|WebCreateNewTopicTemplate|.*ViewTemplate|.*EditTemplate)$'"
- header="<select class='foswikiSelect'>
+ header="<select name='templatetopic' class='foswikiSelect'>
<option value='%URLPARAM{"topicTemplate"}%' class='foswikiRadioButton'>%TRANSLATE{"Default"}%</option>$n"
format="<option value='$topic' class='foswikiOption'><nop>$topic</option>"
separator="$n"
--
UlrichLeodolter - 11 Mar 2020