Bugzilla – Attachment 145116 Details for
Bug 32580
Background job cancel button broken, leads to background_jobs.pl with a kc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32580: Fix typo in cancel link on background jobs page
Bug-32580-Fix-typo-in-cancel-link-on-background-jo.patch (text/plain), 1.97 KB, created by
Katrin Fischer
on 2023-01-06 23:27:49 UTC
(
hide
)
Description:
Bug 32580: Fix typo in cancel link on background jobs page
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-01-06 23:27:49 UTC
Size:
1.97 KB
patch
obsolete
>From 5f32788fde984234c164c2a209bab826b809509e Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Sat, 7 Jan 2023 00:24:11 +0100 >Subject: [PATCH] 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 >--- > .../intranet-tmpl/prog/en/modules/admin/background_jobs.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt >index 2a18857b1b..8a0c760ec5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt >@@ -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; > }, >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32580
:
145116
|
145204
|
146318