From 52772ae8791c2b667a3888ac3cea28ee668900db Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Thu, 5 Jul 2018 12:06:14 -0400 Subject: [PATCH] documentation fix for DownloadBehavior fix --- code/model/DMSDocument.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/model/DMSDocument.php b/code/model/DMSDocument.php index 470cdb3..6954160 100644 --- a/code/model/DMSDocument.php +++ b/code/model/DMSDocument.php @@ -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')