Actions
Defect #44462
openProject list rows show the context menu cursor although no context menu is available
Resolution:
Affected version:
Description
On the Projects page (display type: list), rows use the context menu cursor, but right clicking only opens the browser's own menu. source:trunk/app/views/projects/_list.html.erb adds the hascontextmenu class to every row, while the context menu itself is available on the administration project list only (#33422).
diff --git a/app/views/projects/_list.html.erb b/app/views/projects/_list.html.erb
index 6bfd5eb01a..2f5c83f6a5 100644
--- a/app/views/projects/_list.html.erb
+++ b/app/views/projects/_list.html.erb
@@ -40,7 +40,7 @@
<% end %>
</tr>
<% end %>
- <tr id="project-<%= entry.id %>" class="<%= cycle('odd', 'even') %> hascontextmenu <%= entry.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
+ <tr id="project-<%= entry.id %>" class="<%= cycle('odd', 'even') %> <%= 'hascontextmenu' if @admin_list %> <%= entry.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
<% if @admin_list %>
<% if !entry.scheduled_for_deletion? %>
<td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td>
Updated by Go MAEDA about 5 hours ago
- Status changed from New to Confirmed
- Target version set to 6.1.5
Actions