From 616899d8793f3001c6d458276bebbd1b9cbe03ab Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 12 Feb 2008 18:33:38 +0000 Subject: [PATCH] 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 --- app/views/issues/_form.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %>

-- 2.39.5