diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-19 21:36:59 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-19 21:36:59 +0000 |
commit | 4730ef894fa9794e95e47919c9baa75fd5a264f8 (patch) | |
tree | 5b65f611e50ff4565e56e962c94cefc33800b241 /app/views/issues | |
parent | 0cde1fccbc76defae93aacfdb4ddd8acbb835281 (diff) | |
download | redmine-4730ef894fa9794e95e47919c9baa75fd5a264f8.tar.gz redmine-4730ef894fa9794e95e47919c9baa75fd5a264f8.zip |
Fixed that group is not displayed when the first group is a boolean custom field group with "No" value (#18896).
git-svn-id: http://svn.redmine.org/redmine/trunk@13922 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues')
-rw-r--r-- | app/views/issues/_list.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/issues/_list.html.erb b/app/views/issues/_list.html.erb index 48b5860a7..024866782 100644 --- a/app/views/issues/_list.html.erb +++ b/app/views/issues/_list.html.erb @@ -14,10 +14,10 @@ <% end %> </tr> </thead> - <% previous_group = false %> + <% previous_group, first = false, true %> <tbody> <% issue_list(issues) do |issue, level| -%> - <% if @query.grouped? && (group = @query.group_by_column.value(issue)) != previous_group %> + <% if @query.grouped? && ((group = @query.group_by_column.value(issue)) != previous_group || first) %> <% reset_cycle %> <tr class="group open"> <td colspan="<%= query.inline_columns.size + 2 %>"> @@ -27,7 +27,7 @@ "toggleAllRowGroups(this)", :class => 'toggle-all') %> </td> </tr> - <% previous_group = group %> + <% previous_group, first = group, false %> <% end %> <tr id="issue-<%= issue.id %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td> |