Project

General

Profile

Actions

Defect #1218

closed

Changing tracker causes disappearing of template selection

Added by Maik Lindner about 8 years ago. Updated about 8 years ago.

Status:
終了(Closed)
Priority:
高め(High)
Assignee:
Target version:
Start date:
03/26/2013
Due date:
% Done:

100%

Estimated time:

Description

To reproduce
  1. create a default issue template for multiple trackers, including the default tracker
  2. create a new issue
    • this will use the default tracker, and will load the default template for that tracker
  3. change the tracker to another tracker with a default template defined
    • this will keep the old tracker's template and the template selection disappears

Expected behavior
  1. create a new issue
    • this will use the default tracker, and will load the default template for that tracker
  2. change the tracker to another tracker with a default template defined
    • the default issue template for the new tracker replaces the template data from the previous tracker and the template selection does not disappear.

Redmine: 2.3.0.stable.11670


Related issues

Related to Issue Template - Defect #1254: In case default template defined, template loaded and append text when editing issue. 終了(Closed)Akiko Takano07/19/2013

Actions
Actions #1

Updated by Maik Lindner about 8 years ago

(sorry for bad formatting, I forgot the line breaks)

Actions #2

Updated by NAITOH Jun about 8 years ago

This issue can reproduce on this web site.

I think that this issue was caused by r11405.

http://www.redmine.org/projects/redmine/repository/revisions/11405

Actions #3

Updated by NAITOH Jun about 8 years ago

I wrote patch.

--- lib/issue_templates_issues_hook.rb_org    2013-03-28 08:07:04.799238176 +0900
+++ lib/issue_templates_issues_hook.rb    2013-03-28 08:07:22.577201332 +0900
@@ -18,7 +18,7 @@
     action = context[:request].parameters[:action]
     project_id = context[:request].parameters[:project_id]

-    return '' unless action == 'new' && !project_id.blank?    
+    return '' unless (action == 'new' or action == 'update_form') && !project_id.blank?    
     context[:controller].send(
       :render_to_string,
       {

Actions #4

Updated by Maik Lindner about 8 years ago

Patch works fine - Thank you!

Actions #5

Updated by Akiko Takano about 8 years ago

  • Status changed from 新規(New) to 担当(Assigned)
  • Assignee set to Akiko Takano
  • Priority changed from 通常(Normal) to 高め(High)
  • Target version set to Future Release

Hi, Maik!
Thank you so much for your report and sorry for my delayed reply....
The same defect was reported at https://bitbucket.org/akiko_pusu/redmine_issue_templates/issue/26.

And, Naitoh-San, I really appreciate your help :)

Actions #6

Updated by Akiko Takano about 8 years ago

  • Target version changed from Future Release to ver0.0.6
Actions #7

Updated by Akiko Takano about 8 years ago

  • Status changed from 担当(Assigned) to 終了(Closed)
  • % Done changed from 0 to 100

Close issue. (Related: #1151)

Actions

Also available in: Atom PDF