mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
remove DMSSiteTreeExtension.getDocumentSets() because it messes with the page history (readonly mode)
This commit is contained in:
parent
fb6bdf59c2
commit
2c204bb0b6
@ -151,7 +151,7 @@ class DMS extends Object implements DMSInterface
|
||||
|
||||
public function getDocumentSetsByPage(SiteTree $page)
|
||||
{
|
||||
return $page->getDocumentSets();
|
||||
return $page->DocumentSets();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -52,16 +52,6 @@ class DMSSiteTreeExtension extends DataExtension
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of document sets for the owner page
|
||||
*
|
||||
* @return ArrayList
|
||||
*/
|
||||
public function getDocumentSets()
|
||||
{
|
||||
return $this->owner->DocumentSets();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of all documents from all document sets for the owner page
|
||||
*
|
||||
@ -71,7 +61,7 @@ class DMSSiteTreeExtension extends DataExtension
|
||||
{
|
||||
$documents = ArrayList::create();
|
||||
|
||||
foreach ($this->getDocumentSets() as $documentSet) {
|
||||
foreach ($this->owner->DocumentSets() as $documentSet) {
|
||||
/** @var DocumentSet $documentSet */
|
||||
$documents->merge($documentSet->getDocuments());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user