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
This commit is contained in:
Jean-Philippe Lang 2008-02-12 18:33:38 +00:00
parent 30a7314b86
commit 616899d879
1 changed files with 1 additions and 1 deletions

View 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>