mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
set latest content if no version is set
This commit is contained in:
parent
56bbdefced
commit
dd8f9c7186
|
@ -48,6 +48,8 @@ if(isset($_GET['documentid']) && $_GET['documentid'] && is_numeric($_GET['docume
|
|||
if($document = $dms->getDocument($_GET["documentid"])) {
|
||||
if(isset($_GET['version']) && $_GET['version'] && is_numeric($_GET['version'])) {
|
||||
$content = $document->getContentByVersion($_GET['version']);
|
||||
} else {
|
||||
$content = $document->getLatestContent();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user