@@ -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 |
General Comments 0
You need to be logged in to leave comments.
Login now