Modify ↓
#12841 closed defect (fixed)
Group heading not shown for first group in report if group is empty
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.2.2 |
Component: | report system | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Fixed missing report heading in first group when value is empty |
||
API Changes: | |||
Internal Changes: |
Description (last modified by )
Attachments (3)
Change History (10)
by , 7 years ago
Attachment: | Screen Shot 2017-06-15 at 11.27.13.png added |
---|
by , 7 years ago
Attachment: | Screen Shot 2017-06-15 at 11.27.38.png added |
---|
by , 7 years ago
Attachment: | Screen Shot 2017-06-15 at 11.28.16.png added |
---|
comment:1 by , 7 years ago
Description: | modified (diff) |
---|
follow-up: 4 comment:2 by , 7 years ago
comment:3 by , 7 years ago
Milestone: | next-stable-1.2.x → 1.2.2 |
---|
comment:4 by , 7 years ago
Replying to Ryan J Ollos:
For example, on SQLite for report {3} we'd have:
- 'Milestone '||milestone AS __group__, + 'Milestone '||ifnull(milestone,'(empty)') AS __group__,
If '(empty)'
is embedded in the report, (empty)
cannot be translated.
comment:5 by , 7 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Summary: | Group heading not shown in report if only 1 group and group is NULL → Group heading not shown for first group in report if group is empty |
comment:6 by , 7 years ago
I think this issue still exists after r16056. If new ticket is created with milestone field selecting blank, milestone column would be NULL.
sqlite> .nullvalue <NULL> sqlite> .mode line sqlite> SELECT * FROM ticket WHERE id=12; id = 12 type = defect time = 1497878573112092 changetime = 1497878573112092 component = component1 severity = <NULL> priority = major owner = <NULL> reporter = admin cc = <NULL> version = <NULL> milestone = <NULL> status = new resolution = <NULL> summary = tst description = <NULL> keywords = <NULL>
Note:
See TracTickets
for help on using tickets.
One proposed change in [9f25cdfb3/rjollos.git].
When the group heading is NULL, it would be nice if
Milestone (empty)
was shown rather than just(empty)
. We could add anisnull
function for each connection class and modify the reports. For example, on SQLite for report {3} we'd have:I don't think it would be worth fixing up existing reports through a database upgrade step, but we could modify the reports in the database to affect new installations and add a note to TracUpgrade about how to manually modify reports.