diff --git a/code/cms/DMSDocumentAddController.php b/code/cms/DMSDocumentAddController.php index dcba191..185f607 100644 --- a/code/cms/DMSDocumentAddController.php +++ b/code/cms/DMSDocumentAddController.php @@ -190,14 +190,14 @@ class DMSDocumentAddController extends LeftAndMain return Controller::join_links( $modelAdmin->Link('DMSDocumentSet'), 'EditForm/field/DMSDocumentSet/item', - $this->getRequest()->getVar('dsid'), + (int) $this->getRequest()->getVar('dsid'), 'edit' ); } return $modelAdmin->Link(); } - return $this->getPageEditLink($this->currentPageID(), $this->getRequest()->getVar('dsid')); + return $this->getPageEditLink($this->currentPageID(), (int) $this->getRequest()->getVar('dsid')); } /** @@ -212,7 +212,7 @@ class DMSDocumentAddController extends LeftAndMain return Controller::join_links( CMSPageEditController::singleton()->getEditForm($pageId)->FormAction(), 'field/Document Sets/item', - $documentSetId + (int) $documentSetId ); } diff --git a/code/model/DMSDocument.php b/code/model/DMSDocument.php index bafe0d2..3a0258f 100644 --- a/code/model/DMSDocument.php +++ b/code/model/DMSDocument.php @@ -1322,6 +1322,9 @@ class DMSDocument extends DataObject implements DMSDocumentInterface . '