操作
Defect #1218
完了Changing tracker causes disappearing of template selection
開始日:
2013/03/26
期日:
進捗率:
100%
予定工数:
説明
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
NAITOH Jun さんが約11年前に更新
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
NAITOH Jun さんが約11年前に更新
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,
{
Akiko Takano さんがほぼ11年前に更新
- ステータス を 新規(New) から 担当(Assigned) に変更
- 担当者 を Akiko Takano にセット
- 優先度 を 通常(Normal) から 高め(High) に変更
- 対象バージョン を 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
Akiko Takano さんがほぼ11年前に更新
- ステータス を 担当(Assigned) から 終了(Closed) に変更
- 進捗率 を 0 から 100 に変更
Close issue. (Related: #1151)
操作