From 93ae487e55117329f3dde39e41ea760bd22115c1 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 4 Feb 2010 04:55:09 +0000 Subject: [PATCH] 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 --- code/reports/BrokenLinksReport.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/reports/BrokenLinksReport.php b/code/reports/BrokenLinksReport.php index 3a9b48bf..27baae2c 100644 --- a/code/reports/BrokenLinksReport.php +++ b/code/reports/BrokenLinksReport.php @@ -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"; } }