stable

Clone or download

Read-only

NOW() cannot be compared to int/float/text fields

This is a part of story #8859 TQL search on date & numeric fields text_field = now() should not raise anymore a fatal error Improve error messages when now() is used for int/float (instead of using the computed date as string, mention the NOW() keyword so that it is easier for the user to figure out the error). Change-Id: Ibbc18f8379282cd96c0636dcdf8cbca30c80942e

Modified Files

Name
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/FloatFieldBetweenValueChecker.php +6 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/FloatFieldChecker.php +6 −2 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/FloatToNowComparisonException.php +34 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/IntegerFieldBetweenValueChecker.php +6 −2 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/IntegerFieldChecker.php +6 −2 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/IntegerToNowComparisonException.php +34 −0 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/NowIsNotSupportedException.php +24 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/TextFieldChecker.php +24 −2 Go to diff View file
A plugins/tracker/include/Tracker/Report/Query/Advanced/InvalidFields/TextToNowComparisonException.php +34 −0 Go to diff View file
M plugins/tracker/include/autoload.php +6 −2 Go to diff View file