Actions
Defect #1218
closedChanging tracker causes disappearing of template selection
Start date:
03/26/2013
Due date:
% Done:
100%
Estimated time:
Description
To reproduce
- create a default issue template for multiple trackers, including the default tracker
- create a new issue
- this will use the default tracker, and will load the default template for that tracker
- change the tracker to another tracker with a default template defined
- this will keep the old tracker's template and the template selection disappears
- this will use the default tracker, and will load the default template for that tracker
- this will keep the old tracker's template and the template selection disappears
Expected behavior
- create a new issue
- this will use the default tracker, and will load the default template for that tracker
- 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.
- this will use the default tracker, and will load the default template for that tracker
- 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
Updated by Maik Lindner over 11 years ago
(sorry for bad formatting, I forgot the line breaks)
Updated by NAITOH Jun over 11 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
Updated by NAITOH Jun over 11 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,
{
Updated by Akiko Takano over 11 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
Updated by Akiko Takano over 11 years ago
- Target version changed from Future Release to ver0.0.6
Updated by Akiko Takano over 11 years ago
- Status changed from 担当(Assigned) to 終了(Closed)
- % Done changed from 0 to 100
Close issue. (Related: #1151)
Actions