@@ -151,7 +151,13 class IssuesController < ApplicationController | |||
|
151 | 151 | return |
|
152 | 152 | else |
|
153 | 153 | respond_to do |format| |
|
154 |
format.html { |
|
|
154 | format.html { | |
|
155 | if @issue.project.nil? | |
|
156 | render_error :status => 422 | |
|
157 | else | |
|
158 | render :action => 'new' | |
|
159 | end | |
|
160 | } | |
|
155 | 161 | format.api { render_validation_errors(@issue) } |
|
156 | 162 | end |
|
157 | 163 | end |
@@ -484,7 +490,7 class IssuesController < ApplicationController | |||
|
484 | 490 | render_error l(:error_no_default_issue_status) |
|
485 | 491 | return false |
|
486 | 492 | end |
|
487 | else | |
|
493 | elsif request.get? | |
|
488 | 494 | render_error :message => l(:error_no_projects_with_tracker_allowed_for_new_issue), :status => 403 |
|
489 | 495 | return false |
|
490 | 496 | end |
General Comments 0
You need to be logged in to leave comments.
Login now