Bug 34478: Changes for opac-sendshelf
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
9439c9a36e
commit
672c0eafce
2 changed files with 3 additions and 1 deletions
|
@ -41,6 +41,7 @@
|
|||
<textarea id="comment" name="comment" rows="4" cols="40" class="form-control"></textarea>
|
||||
|
||||
<input type="hidden" name="shelfid" value="[% shelfid | html %]" />
|
||||
<input type="hidden" name="op" value="cud-send" />
|
||||
</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">
|
||||
|
|
|
@ -54,10 +54,11 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
|
|||
|
||||
my $shelfid = $query->param('shelfid');
|
||||
my $email = $query->param('email');
|
||||
my $op = $query->param('op') // q{};
|
||||
|
||||
my $shelf = Koha::Virtualshelves->find($shelfid);
|
||||
if ( $shelf and $shelf->can_be_viewed($borrowernumber) ) {
|
||||
if ($email) {
|
||||
if ( $email && $op eq 'cud-send' ) {
|
||||
my $comment = $query->param('comment');
|
||||
|
||||
my $patron = Koha::Patrons->find($borrowernumber);
|
||||
|
|
Loading…
Reference in a new issue