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

After submitting the fullEdit form, go to submit request page now.

parent ecab7e5b
No related branches found
No related tags found
No related merge requests found
......@@ -461,7 +461,9 @@ class RequestController extends Nmc_Controller_Action
$currentForm = array_pop($currentForm);
$currentForm = array_search(strtolower($currentForm),
array_map("strtolower", $requestFormOrder));
if($currentForm < count($requestFormOrder) - 1) {
if($currentForm === false) {
$nextForm = $requestFormOrder[count($requestFormOrder) - 1];
} else if($currentForm < count($requestFormOrder) - 1) {
$nextForm = $requestFormOrder[$currentForm + 1];
} else {
$nextForm = $requestFormOrder[$currentForm];
......@@ -481,11 +483,7 @@ class RequestController extends Nmc_Controller_Action
}
$out->assign('refresh', '/Request/' . $targetForm . '/');
if(true || $_SERVER['REMOTE_ADDR'] != '129.93.39.17') {
echo $out->render('unlModernWrapper.xhtml');
} else {
//print_r($course);
}
echo $out->render('unlModernWrapper.xhtml');
}
public function saveAction() {
......
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