]> source.dussan.org Git - redmine.git/commitdiff
Don't display the dropdown if no transition is allowed.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 27 Sep 2012 22:03:38 +0000 (22:03 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 27 Sep 2012 22:03:38 +0000 (22:03 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10493 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/_attributes.html.erb

index 8bf7dc0aef2627eb4686bec716259f4ae17043cb..2b73623ea6a7f066b52679a9b7f942fe2d612a36 100644 (file)
@@ -2,7 +2,7 @@
 
 <div class="splitcontent">
 <div class="splitcontentleft">
-<% if @issue.safe_attribute? 'status_id'  %>
+<% if @issue.safe_attribute?('status_id') && @allowed_statuses.present? %>
 <p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), {:required => true},
                 :onchange => "updateIssueFrom('#{escape_javascript project_issue_form_path(@project, :id => @issue, :format => 'js')}')" %></p>