mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
BUGFIX: make the DMSDocument_Controller to able able to use customised document object
This commit is contained in:
parent
725da88e75
commit
889d56d569
@ -697,6 +697,7 @@ class DMSDocument_Controller extends Controller {
|
|||||||
$doc = null;
|
$doc = null;
|
||||||
$id = Convert::raw2sql(intval($request->param('ID')));
|
$id = Convert::raw2sql(intval($request->param('ID')));
|
||||||
$doc = DataObject::get_by_id('DMSDocument', $id);
|
$doc = DataObject::get_by_id('DMSDocument', $id);
|
||||||
|
$this->extend('updateDocumentFromID', $doc, $request);
|
||||||
return $doc;
|
return $doc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user