Bug 19287: Fix conflict with bug 19304
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 19 Jan 2018 16:41:20 +0000 (13:41 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 23 Apr 2018 15:42:38 +0000 (12:42 -0300)
Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>

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 2e1612f..72aba66 100755 (executable)
@@ -92,7 +92,7 @@ if ( $op eq 'cancel_reserve' and $reserve_id ) {
                         from_address           => $admin_email_address,
                     }
                 );
-                unless ( C4::Members::GetNoticeEmailAddress( $patron->borrowernumber ) ) {
+                unless ( $patron->notice_email_address ) {
                     push @messages, {type => 'alert', code => 'no_email_address', };
                 }
                 push @messages, { type => 'message', code => 'letter_enqueued' };