From: Jean-Philippe Lang Date: Tue, 12 Feb 2008 18:33:38 +0000 (+0000) Subject: Fixed: empty status list shouldn't be displayed when the user can not change the... X-Git-Tag: 0.7.0-RC1~147 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=616899d8793f3001c6d458276bebbd1b9cbe03ab;p=redmine.git Fixed: empty status list shouldn't be displayed when the user can not change the status. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1139 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/issues/_form.rhtml b/app/views/issues/_form.rhtml index 6a4cd0f5f..20ca666c4 100644 --- a/app/views/issues/_form.rhtml +++ b/app/views/issues/_form.rhtml @@ -15,7 +15,7 @@
-<% if @issue.new_record? || @allowed_statuses %> +<% if @issue.new_record? || @allowed_statuses.any? %>

<%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %>

<% else %>

<%= @issue.status.name %>