mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR CHANGE: HistoricalChildren now ordered by ID
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@87763 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d8b987bae7
commit
1be70c9ffc
@ -470,8 +470,9 @@ class Hierarchy extends DataObjectDecorator {
|
|||||||
* from both stage & live.
|
* from both stage & live.
|
||||||
*/
|
*/
|
||||||
public function AllHistoricalChildren() {
|
public function AllHistoricalChildren() {
|
||||||
return Versioned::get_including_deleted(ClassInfo::baseDataClass($this->owner->class),
|
$baseClass=ClassInfo::baseDataClass($this->owner->class);
|
||||||
"\"ParentID\" = " . (int)$this->owner->ID);
|
return Versioned::get_including_deleted($baseClass,
|
||||||
|
"\"ParentID\" = " . (int)$this->owner->ID, "\"$baseClass\".\"ID\" ASC");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user