@@ 830-838 (lines=9) @@ | ||
827 | ||
828 | $validAction = false; |
|
829 | ||
830 | foreach ($wf->getGlobalActions() as $actionDesc) { |
|
831 | if ($actionId === $actionDesc->getId()) { |
|
832 | $action = $actionDesc; |
|
833 | ||
834 | if ($this->isActionAvailable($action, $transientVars, $ps, 0)) { |
|
835 | $validAction = true; |
|
836 | } |
|
837 | } |
|
838 | } |
|
839 | ||
840 | ||
841 | foreach ($currentSteps as $step) { |
|
@@ 844-852 (lines=9) @@ | ||
841 | foreach ($currentSteps as $step) { |
|
842 | $s = $wf->getStep($step->getStepId()); |
|
843 | ||
844 | foreach ($s->getActions() as $actionDesc) { |
|
845 | if ($actionId === $actionDesc->getId()) { |
|
846 | $action = $actionDesc; |
|
847 | ||
848 | if ($this->isActionAvailable($action, $transientVars, $ps, $s->getId())) { |
|
849 | $validAction = true; |
|
850 | } |
|
851 | } |
|
852 | } |
|
853 | } |
|
854 | ||
855 |