mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
f9d6dc1269
commit
93ae487e55
@ -19,10 +19,10 @@ class BrokenLinksReport extends SSReport {
|
|||||||
|
|
||||||
if($field == 'AbsoluteLink') {
|
if($field == 'AbsoluteLink') {
|
||||||
$sort = 'URLSegment ' . $direction;
|
$sort = 'URLSegment ' . $direction;
|
||||||
}
|
} elseif($field == 'Subsite.Title') {
|
||||||
|
|
||||||
if($field == 'Subsite.Title') {
|
|
||||||
$join = 'LEFT JOIN "Subsite" ON "Subsite"."ID" = "SiteTree"."SubsiteID"';
|
$join = 'LEFT JOIN "Subsite" ON "Subsite"."ID" = "SiteTree"."SubsiteID"';
|
||||||
|
} elseif($field == 'BrokenReason') {
|
||||||
|
$sort = "HasBrokenLink ASC, HasBrokenFile ASC";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user