Item14896: newtopic.nat.tmpl does not submit selected template

pencil
Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release:
Applies To: Extension
Component: NatSkin
Branches:
Reported By: UlrichLeodolter
Waiting For:
Last Change By: MichaelDaum
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

 

ItemTemplate edit

Summary newtopic.nat.tmpl does not submit selected template
ReportedBy UlrichLeodolter
Codebase 2.1.6
SVN Range
AppliesTo Extension
Component NatSkin
Priority Normal
CurrentState Confirmed
WaitingFor
Checkins
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r2 - 14 May 2020, MichaelDaum - This page was cached on 05 Jun 2020 - 13:50.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy