Fix abort job from ui
* Fix abort job from ui which was broken by commit
ed288dca63
This commit is contained in:
parent
3a72337f1e
commit
b206c4cf36
|
@ -233,6 +233,8 @@ class ViewController(BaseController):
|
|||
|
||||
def abort_job(self, source, id):
|
||||
try:
|
||||
context = {'model': model, 'user': c.user}
|
||||
p.toolkit.get_action('harvest_job_abort')(context, {'id': id})
|
||||
h.flash_success(_('Harvest job stopped'))
|
||||
|
||||
except p.toolkit.ObjectNotFound:
|
||||
|
|
Loading…
Reference in New Issue