I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Bug #2138

Issues count is not shown

Added by Alexander Kuznecov over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
15 Jan 2013
Due date:
26 Jan 2013
% Done:

100%

Redmine version:
2.2.1
External issue:

Description

Hello,

I have found that issue counter is not shown when issues grouped by some condition
See screenshot example.

After looking to view app/views/issues/_list.html.erb source code, I have changed one string and got issue count back:
from

<%= group.blank? ? 'None' : column_content(@query.group_by_column, issue) %> <span class="count">(<%=  @issue_count_by_group[group_name] %>)</span>

to
<%= group.blank? ? 'None' : column_content(@query.group_by_column, issue) %> <span class="count">(<%=  @issue_count_by_group[group] %>)</span>

As it done in vanilla issues list view

Could you please explain reason of changing 'group’ to 'group name’? Probably I’m break something : )
Thanks

Tested on
Redmine 1.4.6 / Ruby 1.9.3-p327
Redmine 2.2.1 / Ruby 1.9.3-p362

Selection_2013011516e3.png View (36.6 KB) Alexander Kuznecov, 15 Jan 2013 08:24


Related issues

Related to Extended Fields - Bug #2015: Grouping by custom field not working Closed 21 Mar 2012 08 Jul 2012

Associated revisions

History

#1 Updated by Andriy Lesyuk over 11 years ago

  • Status changed from New to Open

#3 Updated by Andriy Lesyuk about 11 years ago

Could you please explain reason of changing 'group’ to 'group name’? Probably I’m break something : )

See #2015. Will need to figure out why group.to_s does not work...

#4 Updated by Andriy Lesyuk about 11 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r79.

#5 Updated by Andriy Lesyuk about 11 years ago

  • Due date set to 26 Jan 2013

Also available in: Atom PDF

Terms of use | Privacy policy