Fix abort job from ui

* Fix abort job from ui which was broken by commit
ed288dca63
This commit is contained in:
seitenbau-govdata 2019-07-01 12:18:09 +02:00
parent 3a72337f1e
commit b206c4cf36
1 changed files with 2 additions and 0 deletions

View File

@ -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: