summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-02-12 18:33:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-02-12 18:33:38 +0000
commit616899d8793f3001c6d458276bebbd1b9cbe03ab (patch)
treeec1d29b6fa7ea089e84cd6fc04ab4bb7fc3ea6a2
parent30a7314b861f1c61d8dbc27d2d57b2146ce57855 (diff)
downloadredmine-616899d8793f3001c6d458276bebbd1b9cbe03ab.tar.gz
redmine-616899d8793f3001c6d458276bebbd1b9cbe03ab.zip
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
-rw-r--r--app/views/issues/_form.rhtml2
1 files changed, 1 insertions, 1 deletions
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 @@
</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>