Bugzilla – Attachment 127323 Details for
Bug 29411
Single result for checkout search by name should redirect to check out tab
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29411: Redirect to circulation if circsearch is true
Bug-29411-Redirect-to-circulation-if-circsearch-is.patch (text/plain), 2.30 KB, created by
Martin Renvoize
on 2021-11-04 13:51:30 UTC
(
hide
)
Description:
Bug 29411: Redirect to circulation if circsearch is true
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2021-11-04 13:51:30 UTC
Size:
2.30 KB
patch
obsolete
>From 449d4a247ef84a14f86ebb407ccb482ff4edec45 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 4 Nov 2021 06:50:46 +0000 >Subject: [PATCH] Bug 29411: Redirect to circulation if circsearch is true > >TO test: > 1 - Have a patron with a unique surname i.e. Acosta > 2 - Enter the surename into 'Search patrons' box on staff homepage > 3 - You are redirected to 'members/moremember.pl' > 4 - Enter the surname into 'Check out' box at top of page > 5 - You are redirected to 'members/moremember.pl' > 6 - Apply patch > 7 - Enter the surename into 'Search patrons' box on staff homepage > 8 - You are redirected to 'members/moremember.pl' > 9 - Enter the surname into 'Check out' box at top of page >10 - You are redirected to 'circ/circulation.pl' > >Signed-off-by: Owen <oleonard@myacpl.org> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >index f1a6669e6f..4a4e50650a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt >@@ -444,7 +444,12 @@ > var borrowernumber = json.aaData[0].borrowernumber; > /* Overwrite history state of firstletter search since only one result was returned; This prevents a loop upon clicking back */ > history.replaceState( {}, null, window.location.href.split("?" )[0]); >- document.location.href="/cgi-bin/koha/members/moremember.pl?borrowernumber="+borrowernumber; >+ [% IF circsearch == 1 %] >+ [% SET redirect = "circ/circulation" %] >+ [% ELSE %] >+ [% SET redirect = "members/moremember" %] >+ [% END %] >+ document.location.href="/cgi-bin/koha/[% redirect | $raw %].pl?borrowernumber="+borrowernumber; > return false; > } > fnCallback(json); >-- >2.20.1
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 29411
:
127287
|
127293
|
127294
| 127323