mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
Merge pull request #200 from silverstripe/pulls/2.0/cast-dsid-as-ints
FIX Ensure document set IDs are cast to integers
This commit is contained in:
commit
b7aaadf7bb
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user