mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Removed arguments to Hierarchy::getDescendantIDList() calls, as the method does not have any
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@98341 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
dc15573458
commit
b2d2220d22
@ -564,7 +564,7 @@ JS;
|
|||||||
|
|
||||||
// before deleting the records, get the descendants of this tree
|
// before deleting the records, get the descendants of this tree
|
||||||
if($record) {
|
if($record) {
|
||||||
$descendantIDs = $record->getDescendantIDList('SiteTree');
|
$descendantIDs = $record->getDescendantIDList();
|
||||||
|
|
||||||
// then delete them from the live site too
|
// then delete them from the live site too
|
||||||
$descendantsRemoved = 0;
|
$descendantsRemoved = 0;
|
||||||
|
@ -44,7 +44,7 @@ class ThumbnailStripField extends FormField {
|
|||||||
$folder = DataObject::get_by_id('Folder', (int) $_GET['folderID']);
|
$folder = DataObject::get_by_id('Folder', (int) $_GET['folderID']);
|
||||||
|
|
||||||
if($folder) {
|
if($folder) {
|
||||||
$folderList = $folder->getDescendantIDList('Folder');
|
$folderList = $folder->getDescendantIDList();
|
||||||
array_unshift($folderList, $folder->ID);
|
array_unshift($folderList, $folder->ID);
|
||||||
|
|
||||||
$whereSQL = '"ParentID" IN (' . implode(', ', $folderList) . ')';
|
$whereSQL = '"ParentID" IN (' . implode(', ', $folderList) . ')';
|
||||||
|
Loading…
Reference in New Issue
Block a user