OSDN Git Service

Fixed potential nil method errors when trying to access /issues/context_menu with...
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>
Wed, 27 Oct 2010 21:01:26 +0000 (21:01 +0000)
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>
Wed, 27 Oct 2010 21:01:26 +0000 (21:01 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4302 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/context_menus/issues.html.erb

index 3109ac4..3372ed6 100644 (file)
@@ -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>