Fixed potential nil method errors when trying to access /issues/context_menu with GET. #6750

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4302 e93f8b46-1217-0410-a6f0-8f06a7374b81
pull/351/head
Jean-Baptiste Barth 14 years ago
parent 6ffcbaa7b3
commit e7e7a91b85
  1. 4
      app/views/context_menus/issues.html.erb

@ -9,7 +9,7 @@
:class => 'icon-edit', :disabled => !@can[:edit] %></li>
<% end %>
<% unless @allowed_statuses.empty? %>
<% if @allowed_statuses.present? %>
<li class="folder">
<a href="#" class="submenu" onclick="return false;"><%= l(:field_status) %></a>
<ul>
@ -57,7 +57,7 @@
</ul>
</li>
<% end %>
<% unless @assignables.nil? || @assignables.empty? -%>
<% if @assignables.present? -%>
<li class="folder">
<a href="#" class="submenu"><%= l(:field_assigned_to) %></a>
<ul>

Loading…
Cancel
Save