@@ -57,13 +57,13 class IssuesController < ApplicationController | |||
|
57 | 57 | sort_update({'id' => "#{Issue.table_name}.id"}.merge(@query.available_columns.inject({}) {|h, c| h[c.name.to_s] = c.sortable; h})) |
|
58 | 58 | |
|
59 | 59 | if @query.valid? |
|
60 |
limit = |
|
|
61 | respond_to do |format| | |
|
62 | format.html { } | |
|
63 | format.xml { } | |
|
64 |
|
|
|
65 | format.csv { limit = Setting.issues_export_limit.to_i } | |
|
66 | format.pdf { limit = Setting.issues_export_limit.to_i } | |
|
60 | limit = case params[:format] | |
|
61 | when 'csv', 'pdf' | |
|
62 | Setting.issues_export_limit.to_i | |
|
63 | when 'atom' | |
|
64 | Setting.feeds_limit.to_i | |
|
65 | else | |
|
66 | per_page_option | |
|
67 | 67 | end |
|
68 | 68 | |
|
69 | 69 | @issue_count = @query.issue_count |
@@ -157,10 +157,12 class IssuesController < ApplicationController | |||
|
157 | 157 | call_hook(:controller_issues_new_before_save, { :params => params, :issue => @issue }) |
|
158 | 158 | if @issue.save |
|
159 | 159 | attach_files(@issue, params[:attachments]) |
|
160 | flash[:notice] = l(:notice_successful_create) | |
|
161 | 160 | call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue}) |
|
162 | 161 | respond_to do |format| |
|
163 | 162 | format.html { |
|
163 | # Displays a link to the newly created issue in the flash message | |
|
164 | link = @template.link_to("##{@issue.id}", {:controller => 'issues', :action => 'show', :id => @issue}) | |
|
165 | flash[:notice] = l(:notice_issue_created, :value => link) | |
|
164 | 166 | redirect_to(params[:continue] ? { :action => 'new', :tracker_id => @issue.tracker } : |
|
165 | 167 | { :action => 'show', :id => @issue }) |
|
166 | 168 | } |
General Comments 0
You need to be logged in to leave comments.
Login now