Merge pull request #367 from GovDataOfficial/fix-broken-abort-job-in-ui
Fix abort job from ui
This commit is contained in:
commit
9eee08b034
|
@ -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