Bug 34478: Add 'op' to opac-sendbasketform

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2024-01-31 12:35:02 +01:00
parent 4b704d02bc
commit 7ba13418bc
Signed by: jonathan.druart
GPG key ID: A085E712BEF0E0F0
2 changed files with 3 additions and 1 deletions

View file

@ -39,6 +39,7 @@
</fieldset>
[% IF Koha.Preference('OPACHoldRequests') || Koha.Preference('OpacRenewalAllowed') %]<p id="donotrequestbymail">Please do not use this mail to request or renew books.</p>[% END %]
<fieldset class="action">
<input type="hidden" name="op" value="cud-send" />
<input type="submit" class="btn btn-primary" value="Send" />
<a class="cancel close" href="#">Cancel</a>
</fieldset>

View file

@ -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;