mirror of
https://github.com/dolphin-emu/redmine_issue_templates.git
synced 2024-11-26 19:10:22 +00:00
Applied order for global template. (r-labs issueId: 1364)
This commit is contained in:
parent
64d7951431
commit
ed59fa286e
@ -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?
|
||||
@ -165,7 +165,7 @@ class IssueTemplatesController < ApplicationController
|
||||
@issue_template = IssueTemplate.find(params[:id]) if params[:id]
|
||||
render :partial => 'common/preview'
|
||||
end
|
||||
|
||||
|
||||
# Reorder templates
|
||||
def move
|
||||
move_order(params[:to])
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user