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

Bug fix for approval chain manage to allow selection of null values.

parent e8c187ac
No related branches found
No related tags found
No related merge requests found
......@@ -102,13 +102,22 @@ class Requests_ApprovalChainManagerController extends App_Controller_Action
foreach ($links as $link) {
if ($in['currentAction'][$link->getId()] != '_null') {
$link->setCurrentActionId($in['currentAction'][$link->getId()]);
} else {
$link->setCurrentActionId(NULL);
}
if ($in['currentState'][$link->getId()] != '_null') {
$link->setCurrentState($in['currentState'][$link->getId()]);
} else {
$link->setCurrentState(NULL);
}
if ($in['nextAction'][$link->getId()] != '_null') {
$link->setNextActionId($in['nextAction'][$link->getId()]);
} else {
$link->setNextActionId(NULL);
}
if ($in['delete'][$link->getId()]) {
$linksToDelete[] = $link;
} else {
......
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