Merge pull request #367 from GovDataOfficial/fix-broken-abort-job-in-ui

Fix abort job from ui
This commit is contained in:
Stefan Oderbolz 2019-07-01 17:16:20 +02:00 committed by GitHub
commit 9eee08b034
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: