concrete5/concrete5 — pull request #977 by mkly (2013-03-14 07:40:25+00:00)
Title: Fix `CollectionType::getPages()` Return All Types

Fix `CollectionType::getPages()` returning all Collection Typs as
opposed to the instance collection type.

- Adjust SQL Query to account for `ctID` column in `CollectionVersions`
table
- Add additional INNER JOIN