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

Return to edit on preview screen, submitting from preview screen goes to view request.

parent 43325399
Branches
No related tags found
No related merge requests found
......@@ -476,6 +476,8 @@ class RequestController extends Nmc_Controller_Action
if($currentFormIndex === false) {
if (strtolower($currentForm) == 'edit') {
$nextForm = 'Preview';
} else if ($submit = 'ReturntoEdit') {
$nextForm = 'Edit';
} else {
$nextForm = $requestFormOrder[count($requestFormOrder) - 1];
}
......@@ -788,7 +790,7 @@ class RequestController extends Nmc_Controller_Action
Nmc_Registry_Session::getInstance()->erase('request');
$out = new Application_View();
$out->refresh = '/home';
$out->refresh = '/Request/View/' . $request->getPrimaryKey();
echo $out->render('unlModernWrapper.xhtml');
} catch(Exception $e) {
throw $e;
......
......@@ -83,6 +83,7 @@
<input id="cancel_request" type="submit" name="submitType" value="Cancel Request" />
<?php } else { ?>
<input id="submit_request" type="submit" name="submitType" value="Save Changes" />
<input id="submit_request" type="submit" name="submitType" value="Return to Edit" />
<input id="cancel_request" type="submit" name="submitType" value="Abandon Changes" />
<?php } ?>
</form>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment