Bug 32580: Fix typo in cancel link on background jobs page
One way to test: * Make sure you are using Elasticsearch * Edit a record in your catalog * Go to: /cgi-bin/koha/admin/background_jobs.pl * Uncheck 'Current jobs only' * Cancel the job, you'll see a 404 error * Apply patch * Repeat, now the redirect should work right Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
539efac9aa
commit
2e8995343e
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@
|
|||
"data": function( row, type, val, meta ) {
|
||||
var result = '<a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/admin/background_jobs.pl?op=view&id='+ encodeURIComponent(row.job_id) +'"><i class="fa fa-eye" aria-hidden="true"></i> '+_("View")+'</a>'+"\n";
|
||||
if ( row.status == 'new' || row.status == 'started' ) {
|
||||
result += '<a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/admin/bakcground_jobs.pl?op=cancel&id='+ encodeURIComponent(row.job_id) +'"><i class="fa fa-trash" aria-hidden="true"></i> '+_("Cancel")+'</a>';
|
||||
result += '<a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/admin/background_jobs.pl?op=cancel&id='+ encodeURIComponent(row.job_id) +'"><i class="fa fa-trash" aria-hidden="true"></i> '+_("Cancel")+'</a>';
|
||||
}
|
||||
return result;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue