Bug 34478: Add 'op' to sendbasketform

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Martin Renvoize 2024-02-09 11:23:35 +00:00 committed by Jonathan Druart
parent 6246d9812d
commit c16e579d48
Signed by: jonathan.druart
GPG key ID: A085E712BEF0E0F0
2 changed files with 3 additions and 1 deletions

View file

@ -42,12 +42,13 @@ 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');
my $dbh = C4::Context->dbh;
if ($email_add) {
if ( $op eq "cud-send" && $email_add ) {
my $patron = Koha::Patrons->find($borrowernumber);
my $user_email = $patron->notice_email_address;

View file

@ -51,6 +51,7 @@
<nav class="navbar navbar-default navbar-fixed-bottom">
<div class="container-fluid">
<fieldset class="action">
<input type="hidden" name="op" value="cud-send" />
<input type="submit" class="btn btn-primary" value="Send" />
<button type="button" class="btn btn-default close_window">Cancel</button>
</fieldset>