mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
MINOR FIX: column names escaped properly (from r88162)
This commit is contained in:
parent
6b5f6f902d
commit
f12eee0679
@ -63,9 +63,7 @@ class FileSubsites extends DataObjectDecorator {
|
||||
break;
|
||||
}
|
||||
|
||||
if(sizeof($query->select) > 1 && $query->select[0] != 'COUNT(*)'){
|
||||
$query->orderby = "{$q}SubsiteID{$q}" . ($query->orderby ? ', ' : '') . $query->orderby;
|
||||
}
|
||||
$query->orderby = "\"SubsiteID\"" . ($query->orderby ? ', ' : '') . $query->orderby;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user