mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
7993875f16
When sorting a DataQuery over a relation, the SQLQuery automatically included the sort column. The issue with the implement is that potentially the joined record has a field with the same name as the source record causing it to be overridden. In the attached test case, without the patch the title will be set to 'Bar' rather than 'Foo'. This patch aliases the sort column. Alternativally a patch would be to