Skip to content
Snippets Groups Projects
Commit 376abc89 authored by Tim Steiner's avatar Tim Steiner
Browse files

If result of an action is not specified in a Approval Link, treat it as a...

If result of an action is not specified in a Approval Link, treat it as a wildcard after more specific rules fail to match.
parent c3787eb3
No related branches found
No related tags found
No related merge requests found
......@@ -111,6 +111,15 @@ class ApprovalChain extends Nmc_Db_Table_Row
$where = implode(' AND ', $where);
$nextLink = ApprovalLinks::getInstance()->fetchRow($where);
if (!$nextLink) {
$where = array();
$where[] = $db->quoteInto('chain=?', $this->getPrimaryKey());
$where[] = $db->quoteInto('currentAction=?', $request->stackPointer->action->getPrimaryKey());
$where[] = 'currentState IS NULL';
$where = implode(' AND ', $where);
$nextLink = ApprovalLinks::getInstance()->fetchRow($where);
}
$nextAction = $nextLink->nextAction;
return $nextAction;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment