Commit e7e7a91b authored by Jean-Baptiste Barth's avatar Jean-Baptiste Barth

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
parent 6ffcbaa7
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment