Permalink
Browse files

Do not fetch workflow if existing already.

  • Loading branch information...
Guite committed Jan 27, 2013
1 parent 3c9a034 commit f7e3379e7060859aab334be6707fe6e0ab61baf8
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/lib/Zikula/Workflow/Util.php
@@ -310,8 +310,10 @@ public static function getActionsForObject(&$obj, $dbTable, $idcolumn = 'id', $m
$module = ModUtil::getName();
}
if (!self::getWorkflowForObject($obj, $dbTable, $idcolumn, $module)) {
return false;
if (!isset($obj['__WORKFLOW__'])) {
if (!self::getWorkflowForObject($obj, $dbTable, $idcolumn, $module)) {
return false;
}
}
$workflow = $obj['__WORKFLOW__'];

0 comments on commit f7e3379

Please sign in to comment.