mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-15 06:01:19 +00:00
check if next transitions exists
This commit is contained in:
parent
6ceb14cdfd
commit
7060484594
|
@ -4641,10 +4641,11 @@ class SeedDMS_Core_DocumentContent extends SeedDMS_Core_Object { /* {{{ */
|
||||||
if (!$this->_workflowState)
|
if (!$this->_workflowState)
|
||||||
$this->getWorkflowState();
|
$this->getWorkflowState();
|
||||||
$workflowstate = $this->_workflowState;
|
$workflowstate = $this->_workflowState;
|
||||||
$transitions = $this->_workflow->getNextTransitions($workflowstate);
|
if($transitions = $this->_workflow->getNextTransitions($workflowstate)) {
|
||||||
foreach($transitions as $transition) {
|
foreach($transitions as $transition) {
|
||||||
if($this->triggerWorkflowTransitionIsAllowed($user, $transition)) {
|
if($this->triggerWorkflowTransitionIsAllowed($user, $transition)) {
|
||||||
$needwkflaction = true;
|
$needwkflaction = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user