From 7ba13418bccd00c162e6613d2a1cf9aad299a93b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 31 Jan 2024 12:35:02 +0100 Subject: [PATCH] Bug 34478: Add 'op' to opac-sendbasketform Signed-off-by: Jonathan Druart --- .../opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt | 1 + opac/opac-sendbasket.pl | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt index 2f1ef6bbce..edfec7b919 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasketform.tt @@ -39,6 +39,7 @@ [% IF Koha.Preference('OPACHoldRequests') || Koha.Preference('OpacRenewalAllowed') %]

Please do not use this mail to request or renew books.

[% END %]
+ Cancel
diff --git a/opac/opac-sendbasket.pl b/opac/opac-sendbasket.pl index 2235968d41..3d144fc513 100755 --- a/opac/opac-sendbasket.pl +++ b/opac/opac-sendbasket.pl @@ -44,10 +44,11 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( } ); +my $op = $query->param('op') || q{}; my $bib_list = $query->param('bib_list') || ''; my $email_add = $query->param('email_add'); -if ( $email_add ) { +if ( $op eq "cud-send" && $email_add ) { my $patron = Koha::Patrons->find($borrowernumber); my $user_email = $patron->notice_email_address; -- 2.39.5