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