stable
Clone or download
Read-only
fix: Close request #30352 TQL query is in error if a field name contains "-"
Given a field with it's shortname containing the character ```-```, using this field in a TQL query will generate an error. ```-``` is an allowed character in shortnames and must not raise an error. How to test ----------- * Add a selectbox named "select-box-field" in your tracker with static values "A", "B", "C" * Go to your report, witch to advanced mode * Use the following TQL query: ```select-box-field IN ('A')``` => No error is raised, the exepected artifacts matching this query must be retrieved. Autocompletion must work for field names using ```-```. Change-Id: I6110fa0d8b20b14a1d97e8bdcacec7ef1b92f59a
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/grammar/src/tql.pegjs | +1 | −1 | Go to diff View file |
M | plugins/tracker/scripts/lib/TQL-CodeMirror/src/autocompleter.ts | +2 | −1 | Go to diff View file |
M | plugins/tracker/scripts/lib/TQL-CodeMirror/src/configuration.ts | +2 | −2 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Report/Query/Advanced/Grammar/ParserTest.php | +9 | −0 | Go to diff View file |