Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2024-11-13 22:35:07 +01:00
commit 27110c06a9
5 changed files with 10 additions and 11 deletions

View File

@ -40,6 +40,7 @@ if($view) {
$view->setParam('previewWidthList', $settings->_previewWidthList);
$view->setParam('timeout', $settings->_cmdTimeout);
$view->setParam('xsendfile', $settings->_enableXsendfile);
$view->setParam('tasksinmenu', []);
$view($_GET);
exit;
}

View File

@ -805,7 +805,7 @@ class RestapiController { /* {{{ */
return $response->withJson(array('success'=>false, 'message'=>'Upload failed', 'data'=>''), 500);
} else {
if($controller->hasHook('cleanUpDocument')) {
$controller->callHook('cleanUpDocument', $document, $file);
$controller->callHook('cleanUpDocument', $document, ['ѕource'=>'restapi', 'type'=>$userfiletype, 'name'=>$origfilename]);
}
// Send notification to subscribers of folder.
if($notifier) {
@ -977,7 +977,7 @@ class RestapiController { /* {{{ */
} else {
unlink($temp);
if($controller->hasHook('cleanUpDocument')) {
$controller->callHook('cleanUpDocument', $document, $file_info);
$controller->callHook('cleanUpDocument', $document, ['ѕource'=>'restapi', 'type'=>$userfiletype, 'name'=>$origfilename]);
}
// Send notification to subscribers.
if($notifier) {
@ -2442,7 +2442,7 @@ class RestapiController { /* {{{ */
$params = $request->getParsedBody();
if (empty($params['userid'])) {
return $response->withJson(array('success'=>false, 'message'=>'Missing userid', 'data'=>''), 500);
return $response->withJson(array('success'=>false, 'message'=>'Missing userid', 'data'=>''), 400);
}
$userId = $params['userid'];
if(ctype_digit($userId))
@ -2500,9 +2500,9 @@ class RestapiController { /* {{{ */
if($check !== true)
return $check;
$params = $request->getParsedBody();
if (empty($params['enable']))
if (!isset($params['enable']))
{
return $response->withJson(array('success'=>false, 'message'=>'You must supply an "enable" value', 'data'=>''), 200);
return $response->withJson(array('success'=>false, 'message'=>'You must supply an "enable" value', 'data'=>''), 400);
}
$inherit = false;
@ -2570,12 +2570,12 @@ class RestapiController { /* {{{ */
{
if ($params['id'] == null)
{
return $response->withJson(array('success'=>false, 'message'=>'Please PUT the user or group Id', 'data'=>''), 200);
return $response->withJson(array('success'=>false, 'message'=>'Please PUT the user or group Id', 'data'=>''), 400);
}
if ($params['mode'] == null)
{
return $response->withJson(array('success'=>false, 'message'=>'Please PUT the access mode', 'data'=>''), 200);
return $response->withJson(array('success'=>false, 'message'=>'Please PUT the access mode', 'data'=>''), 400);
}
$modeInput = $params['mode'];

View File

@ -156,7 +156,7 @@ class SeedDMS_View_Dashboard extends SeedDMS_Theme_Style {
$timeout = $this->params['timeout'];
$xsendfile = $this->params['xsendfile'];
$this->htmlStartPage(getMLText("calendar"));
$this->htmlStartPage(getMLText("dashboard"));
$this->globalNavigation();
$this->contentStart();

View File

@ -116,7 +116,7 @@ class SeedDMS_View_Info extends SeedDMS_Theme_Style {
$this->contentHeading(getMLText("missing_php_functions_and_classes"));
$missingfunc = [];
foreach(array('proc_open', 'openssl_cipher_iv_length') as $funcname) {
foreach(array('proc_open', 'openssl_cipher_iv_length', 'system') as $funcname) {
if(!function_exists($funcname)) {
$missingfunc[] = $funcname; //getMLText('func_'.$funcname."_missing")
}

View File

@ -203,8 +203,6 @@ class SeedDMS_View_Tasks extends SeedDMS_Theme_Style {
function countTasks() { /* {{{ */
$dms = $this->params['dms'];
$user = $this->params['user'];
$enablereceiptworkflow = $this->params['enablereceiptworkflow'];
$enablerevisionworkflow = $this->params['enablerevisionworkflow'];
$workflowmode = $this->params['workflowmode'];
$tasksinmenu = $this->params['tasksinmenu'];