Edgewall Software

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12841 closed defect (fixed)

Group heading not shown for first group in report if group is empty — at Version 5

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 Ryan J Ollos)

For example, report {3}:

The group heading with value NULL is shown when it's not the first heading:

And it works correctly when there is only one group heading that is not a NULL value:

r10384 added or (empty), but not for the first heading.

Change History (8)

by Ryan J Ollos, 7 years ago

by Ryan J Ollos, 7 years ago

by Ryan J Ollos, 7 years ago

comment:1 by Ryan J Ollos, 7 years ago

Description: modified (diff)

comment:2 by Ryan J Ollos, 7 years ago

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 an isnull function for each connection class and modify the reports. For example, on SQLite for report {3} we'd have:

-   'Milestone '||milestone AS __group__,
+   'Milestone '||ifnull(milestone,'(empty)') AS __group__,

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.

comment:3 by Ryan J Ollos, 7 years ago

Milestone: next-stable-1.2.x1.2.2

Second issue described in comment:2 will be investigated in #12848.

in reply to:  2 comment:4 by Jun Omae, 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 Ryan J Ollos, 7 years ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed
Summary: Group heading not shown in report if only 1 group and group is NULLGroup heading not shown for first group in report if group is empty

Committed to 1.2-stable in r16056, merged to trunk in r16057.

Note: See TracTickets for help on using tickets.