Defect #1254
完了
In case default template defined, template loaded and append text when editing issue.
NAITOH Jun さんが10年以上前に追加.
10年以上前に更新.
関連するチケット
1 (0件未完了 — 1件完了)
- ステータス を 新規(New) から 担当(Assigned) に変更
- 対象バージョン を ver0.0.6 にセット
- 題名 を Defect from Bitbucket #NNNN から In case default template defined, template loaded and append text when editing issue. に変更
- ステータス を 担当(Assigned) から 解決(Resolved) に変更
- 進捗率 を 0 から 70 に変更
なんとも怪しいSubjectですみません..(適切な訳が出来るといいんですが)
update_formはチケットの新規作成時と、編集時の2パターンがありますので、『新規」のみに限定するように下記の通り調整で如何でしょう。
def view_issues_form_details_top(context={})
action = context[:request].parameters[:action]
project_id = context[:request].parameters[:project_id]
+ issue_id = context[:request].parameters[:id]
- return '' unless (action == 'new' or action == 'update_form' or action == 'create') && !project_id.blank?
+ return '' unless (action == 'new' or action == 'update_form' or action == 'create') && !project_id.blank? && issue_id.blank?
context[:controller].send(
:render_to_string,
{
:partial => 'issue_templates/issue_select_form'
}
)
end
commits:33ee9e で適用済み。
#1218 と上記修正分、0.0.6に含めさせていただきますね。
修正ありがとうございます。
Redmine 2.2.3 で確認したところ、問題無く動作しました。
ありがとうございます。
- ステータス を 解決(Resolved) から 終了(Closed) に変更
- 進捗率 を 70 から 100 に変更
他の形式にエクスポート: Atom
PDF