From 358016818e906c09d092876eb3141d1c04afcd42 Mon Sep 17 00:00:00 2001 From: Greg Schueler Date: Wed, 2 Mar 2011 14:29:24 -0800 Subject: [PATCH] Redirect to job view page after edit/create. [#223 state:resolved] --- .../controllers/ScheduledExecutionController.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rundeckapp/grails-app/controllers/ScheduledExecutionController.groovy b/rundeckapp/grails-app/controllers/ScheduledExecutionController.groovy index 59519308ecd..beee33b9d28 100644 --- a/rundeckapp/grails-app/controllers/ScheduledExecutionController.groovy +++ b/rundeckapp/grails-app/controllers/ScheduledExecutionController.groovy @@ -513,7 +513,7 @@ class ScheduledExecutionController { }else{ flash.savedJob=scheduledExecution flash.savedJobMessage="Saved changes to Job" - redirect(controller:'menu',action:'jobs') + redirect(controller: 'scheduledExecution', action: 'show', params: [id: scheduledExecution.id]) } } def _doupdate = { params -> @@ -1916,7 +1916,7 @@ class ScheduledExecutionController { if(scheduledExecution.id){ flash.savedJob=scheduledExecution flash.savedJobMessage="Created new Job" - redirect(controller:'menu',action:'jobs') + redirect(controller:'scheduledExecution',action:'show',params:[id:scheduledExecution.id]) }else{ scheduledExecution.errors.allErrors.each { log.warn(it.defaultMessage) } request.message=g.message(code:'ScheduledExecutionController.save.failed')