verifying email_notify is true on the hold before sending
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 2 Sep 2006 20:33:15 +0000 (20:33 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 2 Sep 2006 20:33:15 +0000 (20:33 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5873 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Circ/HoldNotify.pm

index 841a3b8..31d9535 100644 (file)
@@ -119,6 +119,11 @@ sub send_email_notify {
                return 0;
        }
 
+       unless ($U->is_true($self->hold->email_notify)) {
+               $logger->info("not sending hold notification becaue email_notify is false");
+               return 0;
+       }
+
        $logger->info("hold_notify: attempting email notify on hold ".$self->hold->id);
 
        return OpenILS::Event->new('PATRON_NO_EMAIL_ADDRESS')