3 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -407,13 +407,11 @@ class TasksController {
407
407
t. history. each { it -> it }
408
408
t. output. each { it -> it }
409
409
t. input. each { it -> it }
410
- def task = tasksService. reRun(t)
411
410
412
- if (task) {
413
- render task as JSON
414
- } else {
415
- redirect(action : " index" , params : params)
416
- }
411
+ tasksService. reRun(t)
412
+
413
+ params. remove(' id' )
414
+ redirect(action : " index" , params : params)
417
415
}
418
416
419
417
/**
Original file line number Diff line number Diff line change 110
110
111
111
<g:sortableColumn property =" history"
112
112
title =" ${ message(code: ' task.history.label' , default : ' History (last 4 entries)' ) } " />
113
- <td >< i class = " fa fa-user " ></ i > </td >
113
+ <td >userId </td >
114
114
<th ></th >
115
115
</thead >
116
116
<tbody >
135
135
<g:formatDate date =" ${ h. key } " format =" dd/MM/yy hh:mm:ss" />=${ h. value } <br />
136
136
</g:each ></td >
137
137
138
- <td ><g:link action =" getUserById"
139
- id =" ${ taskInstance. userId } " ><g:if
140
- test =" ${ taskInstance? . email != " null" } " >${ taskInstance? . email } </g:if ><g:else >${ taskInstance? . userId } </g:else ></g:link ></td >
138
+ <td >${ taskInstance? . userId } </td >
141
139
142
140
<td ><g:link action =" reRun" class =" btn btn-sm btn-default" id =" ${ taskInstance. id } "
143
141
params =" ${ params } " >re-run task</g:link >
150
148
</table >
151
149
152
150
<div class =" pagination" >
153
- <g:paginate total =" ${ taskInstanceCount ?: 0 } " params =" ${ params } " />
151
+ <g:paginate total =" ${ taskInstanceCount ?: 0 } " params =" ${ params } " action = " all " />
154
152
</div >
155
153
</div >
156
154
</body >
Original file line number Diff line number Diff line change 111
111
112
112
<g:sortableColumn property =" history"
113
113
title =" ${ message(code: ' task.history.label' , default : ' History (last 4 entries)' ) } " />
114
- <td >< i class = " fa fa-user " ></ i > </td >
114
+ <td >userId </td >
115
115
<th ></th >
116
116
</thead >
117
117
<tbody >
136
136
<g:formatDate date =" ${ h. key } " format =" dd/MM/yy hh:mm:ss" />=${ h. value } <br />
137
137
</g:each ></td >
138
138
139
- <td ><g:link action =" getUserById"
140
- id =" ${ taskInstance. userId } " ><g:if
141
- test =" ${ taskInstance? . email != " null" } " >${ taskInstance? . email } </g:if ><g:else >${ taskInstance? . userId } </g:else ></g:link ></td >
139
+ <td >${ taskInstance? . userId } </td >
142
140
143
141
<td ><g:link action =" reRun" class =" btn btn-sm btn-default" id =" ${ taskInstance. id } "
144
142
params =" ${ params } " >re-run task</g:link >
0 commit comments