Bug 34546 - Report group code should only contain ASCII chars
Summary: Report group code should only contain ASCII chars
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Reports (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-16 20:20 UTC by Fridolin Somers
Modified: 2023-12-11 22:31 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fridolin Somers 2023-08-16 20:20:59 UTC
When creating a new report, one can create a new report group.
Since its code will be used in tab id attribute, it should be tested to contain only ASCII chars (and no space) : [a-zA-Z0-9_-]
Comment 1 Fridolin Somers 2023-12-11 20:15:06 UTC
Also looks like an id must start with a letter.
Even if it is under debate for HTML5, we have a library reporting this issue.

See https://stackoverflow.com/questions/5672903/can-i-have-an-element-with-an-id-that-starts-with-a-number