Bug 19287: Use the notice defined for the homebranch of the patron
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 9 Apr 2018 16:03:47 +0000 (13:03 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 23 Apr 2018 15:42:39 +0000 (12:42 -0300)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

circ/pendingreserves.pl

index cb82ffc..6f47a31 100755 (executable)
@@ -71,7 +71,7 @@ if ( $op eq 'cancel_reserve' and $reserve_id ) {
             my $letter = C4::Letters::GetPreparedLetter(
                 module => 'reserves',
                 letter_code => 'CANCEL_HOLD_ON_LOST',
-                branchcode => $library->branchcode, # FIXME Is it what we want?
+                branchcode => $patron->homebranch,
                 lang => $patron->lang,
                 tables => {
                     branches    => $library->branchcode,