mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
documentation fix for DownloadBehavior fix
This commit is contained in:
parent
5561e4a7af
commit
52772ae879
@ -1004,7 +1004,8 @@ class DMSDocument extends DataObject implements DMSDocumentInterface
|
||||
$this->LastEditedByID = $currentUserID;
|
||||
}
|
||||
|
||||
// make sure default DownloadBehavior is respected when writing since
|
||||
// make sure default DownloadBehavior is respected when initially writing document
|
||||
// in case the default in the enum is different than what's set in an outside config
|
||||
$defaultDownloadBehaviour = Config::inst()->get('DMSDocument', 'default_download_behaviour');
|
||||
if ($this->DownloadBehavior == null && !empty($defaultDownloadBehaviour)) {
|
||||
$possibleBehaviors = $this->dbObject('DownloadBehavior')
|
||||
|
Loading…
Reference in New Issue
Block a user