silverstripe/silverstripe-framework — pull request #2399 by SaschaSchwarz (2013-09-10 13:33:07+00:00)
Title: BUG DataQuery::getFinalizedQuery misses left joins

Fixes a regexp that could never be matched and was wrong anyway.

Comment and code in GetFinalizedQuery() do not match.
This PR solves an issue in our project where the Query would not contain left joins for addtional tables needed.