Commit c370ef1edcb12b12c5ca6c64457ce9cffb7ec89f
1 parent
d58300f2
ignore PEAR::Errors in workflow-auto-assign.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4792 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
3 deletions
plugins/ktstandard/KTWorkflowAssociation.php
| ... | ... | @@ -72,7 +72,7 @@ class KTWADAddTrigger extends KTWorkflowAssociationDelegator { |
| 72 | 72 | $oWorkflow = $this->_handler->addTrigger($this->_document); |
| 73 | 73 | |
| 74 | 74 | // catch disabled workflows. |
| 75 | - if (!is_null($oWorkflow) && $oWorkflow->getStartStateId() === null) { | |
| 75 | + if (!is_null($oWorkflow) && (PEAR::isError($oWorkflow) || ($oWorkflow->getStartStateId() === null))) { | |
| 76 | 76 | return ; |
| 77 | 77 | } |
| 78 | 78 | |
| ... | ... | @@ -86,7 +86,7 @@ class KTWADEditTrigger extends KTWorkflowAssociationDelegator { |
| 86 | 86 | $oWorkflow = $this->_handler->editTrigger($this->_document); |
| 87 | 87 | |
| 88 | 88 | // catch disabled workflows. |
| 89 | - if (!is_null($oWorkflow) && $oWorkflow->getStartStateId() === null) { | |
| 89 | + if (!is_null($oWorkflow) && (PEAR::isError($oWorkflow) || ($oWorkflow->getStartStateId() === null))) { | |
| 90 | 90 | return ; |
| 91 | 91 | } |
| 92 | 92 | |
| ... | ... | @@ -100,7 +100,7 @@ class KTWADMoveTrigger extends KTWorkflowAssociationDelegator { |
| 100 | 100 | $oWorkflow = $this->_handler->moveTrigger($this->_document); |
| 101 | 101 | |
| 102 | 102 | // catch disabled workflows. |
| 103 | - if (!is_null($oWorkflow) && $oWorkflow->getStartStateId() === null) { | |
| 103 | + if (!is_null($oWorkflow) && (PEAR::isError($oWorkflow) || ($oWorkflow->getStartStateId() === null))) { | |
| 104 | 104 | return ; |
| 105 | 105 | } |
| 106 | 106 | ... | ... |