stable
Clone or download
Read-only
request #10050: Fatal error in tracker reports when static or container field is used in TQL
How to test: - Add fieldset, column, line break, separator and static text fields to your tracker - enter a TQL query using their name and a bogus comparison, for example line_break = "test" - Without this patch, a fatal error is thrown and the report is saved in session. The fatal error stays when you refresh the page. - With this patch, TQL throws an error: "The field 'line_break' doesn't exist" Change-Id: Id531a2b88b2cfae3539a1e2ee40f52f4ec4e4499
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/Tracker/FormElement/Tracker_FormElementFactory.class.php | +13 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFieldsCollectorVisitor.php | +1 | −1 | Go to diff View file |
M | plugins/tracker/tests/Tracker/Report/Query/Advanced/InvalidFieldsCollectorVisitorTest.php | +20 | −20 | Go to diff View file |