BUGFIX: Fix broken reasons sorting (from r96985)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@98203 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-02-04 04:55:09 +00:00
parent f9d6dc1269
commit 93ae487e55

View File

@ -19,10 +19,10 @@ class BrokenLinksReport extends SSReport {
if($field == 'AbsoluteLink') {
$sort = 'URLSegment ' . $direction;
}
if($field == 'Subsite.Title') {
} elseif($field == 'Subsite.Title') {
$join = 'LEFT JOIN "Subsite" ON "Subsite"."ID" = "SiteTree"."SubsiteID"';
} elseif($field == 'BrokenReason') {
$sort = "HasBrokenLink ASC, HasBrokenFile ASC";
}
}