Fixed that some error messages were not displayed (#2866).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2542 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-03-01 10:15:38 +00:00
parent b78349d2ca
commit 38db62f1e7
2 changed files with 24 additions and 4 deletions
+2 -4
View File
@@ -120,8 +120,7 @@ class IssuesController < ApplicationController
# Tracker must be set before custom field values
@issue.tracker ||= @project.trackers.find((params[:issue] && params[:issue][:tracker_id]) || params[:tracker_id] || :first)
if @issue.tracker.nil?
flash.now[:error] = 'No tracker is associated to this project. Please check the Project settings.'
render :nothing => true, :layout => true
render_error 'No tracker is associated to this project. Please check the Project settings.'
return
end
if params[:issue].is_a?(Hash)
@@ -132,8 +131,7 @@ class IssuesController < ApplicationController
default_status = IssueStatus.default
unless default_status
flash.now[:error] = 'No default issue status is defined. Please check your configuration (Go to "Administration -> Issue statuses").'
render :nothing => true, :layout => true
render_error 'No default issue status is defined. Please check your configuration (Go to "Administration -> Issue statuses").'
return
end
@issue.status = default_status