MantisBT: master 53ee0c74

Author Committer Branch Timestamp Parent
vboctor vboctor master 2015-04-27 20:12 master f591e7b6
Affected Issues  0019670: View Issues page fails when a custom field is used for filtering and sorting
Changeset

Fix SQL error when custom field is in filter/sort

If the same custom field is used for filtering to a value that is not "any" and is also used for sorting,
the generated query defines the same table alias twice causing a SQL error.
The fix is to use different aliasing prefix for filtering vs. sorting.

Fixes 0019670

mod - core/filter_api.php Diff File