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

Order of request edit/wizard pages changed.

parent 7307a09d
No related branches found
No related tags found
No related merge requests found
...@@ -491,19 +491,18 @@ class RequestController extends Nmc_Controller_Action ...@@ -491,19 +491,18 @@ class RequestController extends Nmc_Controller_Action
$currentFormIndex = array_search(strtolower($currentForm), $currentFormIndex = array_search(strtolower($currentForm),
array_map("strtolower", $requestFormOrder)); array_map("strtolower", $requestFormOrder));
if($currentFormIndex === false) {
if (strtolower($currentForm) == 'edit') { if ($submit == 'ReturntoEdit') {
$nextForm = 'Preview';
} else if ($submit = 'ReturntoEdit') {
$nextForm = 'Edit'; $nextForm = 'Edit';
} else { } else if($currentFormIndex === false) {
$nextForm = $requestFormOrder[count($requestFormOrder) - 1]; // if the current form page is something unexpected
} $nextForm = 'Preview';
} else if($currentFormIndex < count($requestFormOrder) - 1) { } else if($currentFormIndex < count($requestFormOrder) - 1) {
$nextForm = $requestFormOrder[$currentFormIndex + 1]; $nextForm = $requestFormOrder[$currentFormIndex + 1];
} else { } else {
$nextForm = $requestFormOrder[$currentFormIndex]; $nextForm = $requestFormOrder[$currentFormIndex];
} }
if($currentFormIndex > 0) { if($currentFormIndex > 0) {
$prevForm = $requestFormOrder[$currentFormIndex - 1]; $prevForm = $requestFormOrder[$currentFormIndex - 1];
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment