From fc0f7640dcc6b75107a9590f6ef12158c8510eef Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 28 May 2010 02:31:07 +0000 Subject: [PATCH] BUGFIX: Fix broken reasons sorting (from r96985) (from r98203) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@105846 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 acfc7aba..fe8dd78f 100644 --- a/code/reports/BrokenLinksReport.php +++ b/code/reports/BrokenLinksReport.php @@ -19,10 +19,10 @@ class BrokenLinksReport extends SS_Report { 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"; } }