mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +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)
|
||||
$this->getWorkflowState();
|
||||
$workflowstate = $this->_workflowState;
|
||||
$transitions = $this->_workflow->getNextTransitions($workflowstate);
|
||||
foreach($transitions as $transition) {
|
||||
if($this->triggerWorkflowTransitionIsAllowed($user, $transition)) {
|
||||
$needwkflaction = true;
|
||||
if($transitions = $this->_workflow->getNextTransitions($workflowstate)) {
|
||||
foreach($transitions as $transition) {
|
||||
if($this->triggerWorkflowTransitionIsAllowed($user, $transition)) {
|
||||
$needwkflaction = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user