From e7e7a91b857408557b037932de69f03c4bc6c9aa Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Barth Date: Wed, 27 Oct 2010 21:01:26 +0000 Subject: [PATCH] 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 --- app/views/context_menus/issues.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/context_menus/issues.html.erb b/app/views/context_menus/issues.html.erb index 3109ac4d..3372ed60 100644 --- a/app/views/context_menus/issues.html.erb +++ b/app/views/context_menus/issues.html.erb @@ -9,7 +9,7 @@ :class => 'icon-edit', :disabled => !@can[:edit] %> <% end %> - <% unless @allowed_statuses.empty? %> + <% if @allowed_statuses.present? %>
  • <%= l(:field_status) %>
  • <% end %> - <% unless @assignables.nil? || @assignables.empty? -%> + <% if @assignables.present? -%>
  • <%= l(:field_assigned_to) %>