]> source.dussan.org Git - redmine.git/commitdiff
Fixed: empty status list shouldn't be displayed when the user can not change the...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 12 Feb 2008 18:33:38 +0000 (18:33 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 12 Feb 2008 18:33:38 +0000 (18:33 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1139 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/_form.rhtml

index 6a4cd0f5fb3fa6335bc36f787c52676966532b0d..20ca666c4ae27df23e139e0e47f4841c9958a902 100644 (file)
@@ -15,7 +15,7 @@
 </div>
 
 <div class="splitcontentleft">
-<% if @issue.new_record? || @allowed_statuses %>
+<% if @issue.new_record? || @allowed_statuses.any? %>
 <p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %></p>
 <% else %>
 <p><label><%= l(:field_status) %></label> <%= @issue.status.name %></p>