mirror of
https://github.com/dolphin-emu/redmine_issue_templates.git
synced 2026-01-31 01:15:19 +01:00
Applied order for global template. (r-labs issueId: 1364)
This commit is contained in:
@@ -41,7 +41,7 @@ class IssueTemplatesController < ApplicationController
|
||||
end
|
||||
end
|
||||
|
||||
@globalIssueTemplates = GlobalIssueTemplate.joins(:projects).where(["projects.id = ?", @project.id])
|
||||
@globalIssueTemplates = GlobalIssueTemplate.joins(:projects).where(["projects.id = ?", @project.id]).order('position')
|
||||
|
||||
render :layout => !request.xhr?
|
||||
end
|
||||
@@ -140,7 +140,7 @@ class IssueTemplatesController < ApplicationController
|
||||
end
|
||||
|
||||
@globalIssueTemplates = GlobalIssueTemplate.joins(:projects).where(["tracker_id = ? AND projects.id = ?",
|
||||
@tracker.id, @project.id])
|
||||
@tracker.id, @project.id]).order('position')
|
||||
|
||||
|
||||
if @globalIssueTemplates.any?
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
{:controller => 'issue_templates', :action => 'new', :project_id => @project},
|
||||
:class => 'icon icon-add') %>
|
||||
</div>
|
||||
<div style="clear:both;"></div>
|
||||
|
||||
<% if @notice -%>
|
||||
<div class="flash notice"><%= @notice -%></div>
|
||||
|
||||
Reference in New Issue
Block a user