diff --git a/code/cms/DMSUploadField.php b/code/cms/DMSUploadField.php index d3a92f4..4a87bd0 100644 --- a/code/cms/DMSUploadField.php +++ b/code/cms/DMSUploadField.php @@ -57,6 +57,15 @@ class DMSUploadField extends UploadField { return true; } + + public function isDisabled() { + return (parent::isDisabled() || !$this->isSaveable()); + } + + public function isSaveable() { + return (!empty($this->getRecord()->ID)); + } + /** * Action to handle upload of a single file *