force reload of workflow transitions after adding new transition

This commit is contained in:
Uwe Steinmann 2016-09-07 16:48:05 +02:00
parent e94778ee70
commit f2eac265f9

View File

@ -260,6 +260,10 @@ class SeedDMS_Core_Workflow { /* {{{ */
return false;
}
/* force reloading all transitions otherwise getTransition() will fail if two
* transitions are added in a row, without reloading the workflow
*/
$this->_transitions = array();
$transition = $this->getTransition($db->getInsertID());
foreach($users as $user) {