Bug 33597: (follow-up) Two other occurrences for holdfor

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit f99bcfb652)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 41557555a9)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Marcel de Rooy 2023-04-24 10:51:15 +00:00 committed by Lucas Gass
parent b8fb6aab76
commit e2cb9da41c
1 changed files with 2 additions and 2 deletions

View File

@ -1062,10 +1062,10 @@
[% IF borrowernumber and patron %]
if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
Cookies.remove("holdfor", { path: '/' });
Cookies.remove("holdfor", { path: '/', SameSite: 'Lax' });
}
[% ELSE %]
Cookies.remove("holdfor", { path: '/' });
Cookies.remove("holdfor", { path: '/', SameSite: 'Lax' });
[% END %]
[% UNLESS ( patron.borrowernumber ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %]