|
|
@@ -151,7 +151,13 @@ class IssuesController < ApplicationController |
|
|
|
return |
|
|
|
else |
|
|
|
respond_to do |format| |
|
|
|
format.html { render :action => 'new' } |
|
|
|
format.html { |
|
|
|
if @issue.project.nil? |
|
|
|
render_error :status => 422 |
|
|
|
else |
|
|
|
render :action => 'new' |
|
|
|
end |
|
|
|
} |
|
|
|
format.api { render_validation_errors(@issue) } |
|
|
|
end |
|
|
|
end |
|
|
@@ -484,7 +490,7 @@ class IssuesController < ApplicationController |
|
|
|
render_error l(:error_no_default_issue_status) |
|
|
|
return false |
|
|
|
end |
|
|
|
else |
|
|
|
elsif request.get? |
|
|
|
render_error :message => l(:error_no_projects_with_tracker_allowed_for_new_issue), :status => 403 |
|
|
|
return false |
|
|
|
end |