Skip to content

Commit

Permalink
Redirect to job view page after edit/create. [rundeck#223 state:resol…
Browse files Browse the repository at this point in the history
…ved]
  • Loading branch information
gschueler committed Mar 2, 2011
1 parent 0efa33f commit 3580168
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 3580168

Please sign in to comment.