プロジェクト

全般

プロフィール

Defect #1090

完了

Draft templates are non listed

giovanni d さんがほぼ12年前に追加. 11年以上前に更新.

ステータス:
終了(Closed)
優先度:
急いで(Urgent)
担当者:
対象バージョン:
開始日:
2012/07/24
期日:
進捗率:

100%

予定工数:

説明

If I create an issue template without enable checked, which means it is a draft, then I cannot fine in the list of issue templates.
I don't know how to recover the draft issue template for editing or deleting.

Akiko Takano さんがほぼ12年前に更新

Hi.
You can find template list (index) page not only enable templates but also not enabled (draft) templates.

Please look "Enable" column on template list.
Enable templates have check marks and Disabled templates, work as draft, have no check marks.

How about?

giovanni d さんがほぼ12年前に更新

Actually, I cannot see the draft (not enabled) templates in the template list (index) page.

On my installation, the template list shows only the enabled templates.

I don't know why.

What should I check?

Akiko Takano さんがほぼ12年前に更新

  • ステータス新規(New) から 担当(Assigned) に変更
  • 担当者Akiko Takano にセット
  • 優先度通常(Normal) から 急いで(Urgent) に変更
  • 対象バージョンver0.0.4 にセット

Thank you for your additional information.

I think you are using default (head) branch of this template.
And now I find a problem on trunk source code. Thansk again.

For quick workaround, please edit redmine_issue_templates/app/controllers/issue_templates_controller.rb as following:

From:

      templ = IssueTemplate.find(:all, 
        :conditions => ['project_id = ? AND tracker_id = ? AND enabled = ?', 
        @project.id, tracker.id, true],:order => 'position')

To:

      templ = IssueTemplate.find(:all, 
        :conditions => ['project_id = ? AND tracker_id = ?', 
        @project.id, tracker.id],:order => 'position')

You have to restart your redmine if redmine running production mode.
Sorry for your time.

giovanni d は書きました:

Actually, I cannot see the draft (not enabled) templates in the template list (index) page.

On my installation, the template list shows only the enabled templates.

I don't know why.

What should I check?

giovanni d さんがほぼ12年前に更新

Perfect!

The workaround works!

Thank you very much.

Akiko Takano さんがほぼ12年前に更新

  • ステータス担当(Assigned) から 終了(Closed) に変更
  • 進捗率0 から 100 に変更

I've fixed in commit:e0d9627a79e6.
Thanks for your feedback!

Akiko Takano さんが11年以上前に更新

  • ステータス終了(Closed) から フィードバック(Reopend) に変更
  • 進捗率100 から 80 に変更

Maybe I did some invalid operation and default branch is back to unfixed version.
So I have to rollforward to my fix.

Akiko Takano さんが11年以上前に更新

  • 対象バージョンver0.0.4 から ver0.0.3 (Compatible Redmine2.0) に変更

0.0.3-stable といった形で準備する。

Akiko Takano さんが11年以上前に更新

  • ステータスフィードバック(Reopend) から 終了(Closed) に変更
  • 進捗率80 から 100 に変更

Closed.

他の形式にエクスポート: Atom PDF