agileware-jp / redmine_issue_templates

Redmine Issue Template. Pull requests, reporting issues, stars and sponsoring are always welcome!
https://www.redmine.org/plugins/redmine_issue_templates
GNU General Public License v2.0
70 stars 32 forks source link

Note template sort order is not working #47

Closed yui-har closed 1 year ago

yui-har commented 1 year ago

Summary

You can select a note template when editing a note, but the sort order of the note template is ignored.

Description

  1. Create 3 note templates. (4, 5, 6)
  2. Edit 2 note templates. (4, 5)
  3. Select a note template when editing a note. However, the list of dialogs is displayed ignoring the sort order of the note templates. (6, 4, 5)

Environment

Visual Proof / Screenshot

* Template list

ScreenShot 2023-01-13 9 55 26

* Select a note template (Different from the order in the template list above)

ScreenShot 2023-01-13 9 59 29

Workaround

I think the cause is not using scope :sorted of app/models/note_template.rb.

zh commented 1 year ago

PR merged to both master and 0.3-stable branch.