mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
fix php error when setting mandatory workflow
This commit is contained in:
parent
570df730e8
commit
a3cc1c3c43
|
@ -727,7 +727,7 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server
|
|||
}
|
||||
$approvers = getMandatoryApprovers($document->getFolder(), $this->user);
|
||||
} elseif($settings->_workflowMode == 'advanced') {
|
||||
if($workflows = $user->getMandatoryWorkflows()) {
|
||||
if($workflows = $this->user->getMandatoryWorkflows()) {
|
||||
$workflow = array_shift($workflows);
|
||||
}
|
||||
}
|
||||
|
@ -808,7 +808,7 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server
|
|||
}
|
||||
$approvers = getMandatoryApprovers($folder, $this->user);
|
||||
} elseif($settings->_workflowMode == 'advanced') {
|
||||
if($workflows = $user->getMandatoryWorkflows()) {
|
||||
if($workflows = $this->user->getMandatoryWorkflows()) {
|
||||
$workflow = array_shift($workflows);
|
||||
}
|
||||
}
|
||||
|
@ -1403,7 +1403,7 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server
|
|||
}
|
||||
$approvers = getMandatoryApprovers($objdest, $this->user);
|
||||
} elseif($settings->_workflowMode == 'advanced') {
|
||||
if($workflows = $user->getMandatoryWorkflows()) {
|
||||
if($workflows = $this->user->getMandatoryWorkflows()) {
|
||||
$workflow = array_shift($workflows);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user