summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2010-10-27 21:01:26 +0000
committerJean-Baptiste Barth <jeanbaptiste.barth@gmail.com>2010-10-27 21:01:26 +0000
commite7e7a91b857408557b037932de69f03c4bc6c9aa (patch)
tree7bf15145f9e832a630660b492fb7f0166eeae5f0
parent6ffcbaa7b324edbad472266d7022ae6c8243f6da (diff)
downloadredmine-e7e7a91b857408557b037932de69f03c4bc6c9aa.tar.gz
redmine-e7e7a91b857408557b037932de69f03c4bc6c9aa.zip
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
-rw-r--r--app/views/context_menus/issues.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/context_menus/issues.html.erb b/app/views/context_menus/issues.html.erb
index 3109ac4dd..3372ed600 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] %></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>