#13180 closed defect (fixed)
Don't allow a select box in a ticket query
Reported by: | Owned by: | Ryan J Ollos | |
---|---|---|---|
Priority: | normal | Component: | SumFieldsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
When doing a ticket query, and the Batch Modify plugin is also present, the row containing the sum:
information can be selected. This should not be the case because the row does not refer to a ticket. If the row is selected, one gets this error when doing the batch modify:
ValueError: invalid literal for int() with base 10: 'um:'
Deselecting the row makes the error go away. But I cannot see why it should be selectable in the first place.
Having the sum:
row be selectable may also cause confusion in other contexts.
Attachments (2)
Change History (10)
comment:1 Changed 8 years ago by
Owner: | changed from Cinc-th to Ryan J Ollos |
---|---|
Status: | new → accepted |
comment:2 Changed 8 years ago by
comment:3 Changed 8 years ago by
Proposed fix in trac:#12811. Table styling will also be improved with the proposed change for Trac 1.2.2.
Changed 8 years ago by
Attachment: | Screen Shot 2017-05-17 at 12.16.44.png added |
---|
Changed 8 years ago by
Attachment: | Screen Shot 2017-05-17 at 12.22.19.png added |
---|
comment:4 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
After r16595 the checkbox is added, but is not selected by the select all checkbox.
You can still explicitly select it, which would lead to the exception.
If anyone cares enough to improve this for Trac < 1.2.2, feel free to submit a patch. It's a cosmetic issue that will be resolved by upgrading to Trac 1.2.2 (when it's released). See trac:#12811 for example of no checkbox in the tfoot
row, and improved styling.
comment:5 Changed 8 years ago by
I have added this update. The Sum: row is now not selected by default.
But I see another thing that was not there previously (I am fairly certain). If the report is grouped by some variable, the first group does not have the Sum: row. All other ones do. And, the final group has 2 Sum: rows. One of which is the missing one from the first group.
comment:7 Changed 8 years ago by
Yeah, it doesn't work well. Thanks for testing and noticing.
I've proposed a different change in trac:#12811 that should fix the issue after installing r16600. If no issues are found with the proposed change it will be included in Trac 1.2.2. In the meantime, just be sure to deselect the Sum row before submitting a batch modify request.
In 16595: