Bug 34478: Add 'op' to sendbasketform
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
6246d9812d
commit
c16e579d48
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue