@@ -231,6 +231,11 class ProjectsController < ApplicationController | |||
|
231 | 231 | @priorities = Enumeration::get_values('IPRI') |
|
232 | 232 | |
|
233 | 233 | default_status = IssueStatus.default |
|
234 | unless default_status | |
|
235 | flash.now[:notice] = 'No default issue status defined. Please check your configuration.' | |
|
236 | render :nothing => true, :layout => true | |
|
237 | return | |
|
238 | end | |
|
234 | 239 | @issue = Issue.new(:project => @project, :tracker => @tracker) |
|
235 | 240 | @issue.status = default_status |
|
236 | 241 | @allowed_statuses = ([default_status] + default_status.find_new_statuses_allowed_to(logged_in_user.role_for_project(@project), @issue.tracker))if logged_in_user |
General Comments 0
You need to be logged in to leave comments.
Login now