mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
Merge branch 'seeddms-5.0.x' into develop
This commit is contained in:
commit
4c907dbf9e
|
@ -5,7 +5,7 @@
|
||||||
- MyDocumets: list only documents to approve which have passed review
|
- MyDocumets: list only documents to approve which have passed review
|
||||||
- show preview image in Review/Approval summary
|
- show preview image in Review/Approval summary
|
||||||
- timeout for external commands for creating fulltext index can be set
|
- timeout for external commands for creating fulltext index can be set
|
||||||
- add translations for korean
|
- add translations for korean, croation, ukrainian
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
Changes in version 4.3.19
|
Changes in version 4.3.19
|
||||||
|
|
|
@ -266,7 +266,7 @@ class SeedDMS_AccessOperation {
|
||||||
if(get_class($this->obj) == $this->dms->getClassname('document')) {
|
if(get_class($this->obj) == $this->dms->getClassname('document')) {
|
||||||
$latestContent = $this->obj->getLatestContent();
|
$latestContent = $this->obj->getLatestContent();
|
||||||
$status = $latestContent->getStatus();
|
$status = $latestContent->getStatus();
|
||||||
if ($status["status"]!=S_OBSOLETE && $status["status"]!=S_DRAFT_REV) {
|
if ($status["status"]!=S_OBSOLETE && $status["status"]!=S_DRAFT_REV && $status["status"]!=S_REJECTED) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,6 +54,14 @@ $session->setSu($_GET['userid']);
|
||||||
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_substituted_user')));
|
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_substituted_user')));
|
||||||
|
|
||||||
add_log_line("?userid=".$_GET["userid"]);
|
add_log_line("?userid=".$_GET["userid"]);
|
||||||
header("Location: ../".(isset($settings->_siteDefaultPage) && strlen($settings->_siteDefaultPage)>0 ? $settings->_siteDefaultPage : "out/out.ViewFolder.php?folderid=".$settings->_rootFolderID));
|
|
||||||
|
$newuser = $dms->getUser($_GET["userid"]);
|
||||||
|
|
||||||
|
if (isset($referuri) && strlen($referuri)>0) {
|
||||||
|
header("Location: http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'] . $referuri);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
header("Location: ".$settings->_httpRoot.(isset($settings->_siteDefaultPage) && strlen($settings->_siteDefaultPage)>0 ? $settings->_siteDefaultPage : "out/out.ViewFolder.php?folderid=".($newuser->getHomeFolder() ? $newuser->getHomeFolder() : $settings->_rootFolderID)));
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -2119,6 +2119,7 @@ mayscript>
|
||||||
*/
|
*/
|
||||||
protected function printProtocol($latestContent, $type="") { /* {{{ */
|
protected function printProtocol($latestContent, $type="") { /* {{{ */
|
||||||
$dms = $this->params['dms'];
|
$dms = $this->params['dms'];
|
||||||
|
$document = $latestContent->getDocument();
|
||||||
?>
|
?>
|
||||||
<legend><?php printMLText($type.'_log'); ?></legend>
|
<legend><?php printMLText($type.'_log'); ?></legend>
|
||||||
<table class="table condensed">
|
<table class="table condensed">
|
||||||
|
@ -2178,13 +2179,13 @@ mayscript>
|
||||||
case "review":
|
case "review":
|
||||||
if($rec['file']) {
|
if($rec['file']) {
|
||||||
echo "<br />";
|
echo "<br />";
|
||||||
echo "<a href=\"../op/op.Download.php?documentid=".$documentid."&reviewlogid=".$rec['reviewLogID']."\" class=\"btn btn-mini\"><i class=\"icon-download\"></i> ".getMLText('download')."</a>";
|
echo "<a href=\"../op/op.Download.php?documentid=".$document->getID()."&reviewlogid=".$rec['reviewLogID']."\" class=\"btn btn-mini\"><i class=\"icon-download\"></i> ".getMLText('download')."</a>";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "approval":
|
case "approval":
|
||||||
if($rec['file']) {
|
if($rec['file']) {
|
||||||
echo "<br />";
|
echo "<br />";
|
||||||
echo "<a href=\"../op/op.Download.php?documentid=".$documentid."&approvelogid=".$rec['approveLogID']."\" class=\"btn btn-mini\"><i class=\"icon-download\"></i> ".getMLText('download')."</a>";
|
echo "<a href=\"../op/op.Download.php?documentid=".$document->getID()."&approvelogid=".$rec['approveLogID']."\" class=\"btn btn-mini\"><i class=\"icon-download\"></i> ".getMLText('download')."</a>";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user