From: dbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Mon, 22 Mar 2010 22:25:41 +0000 (+0000)
Subject: Forward-port r15933 from rel_1_6_0: Default to "true" for email notification of holds... 
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7f5dd2a6829ee416a33c3170e9e6cf712203e8bc;p=evergreen%2Ftadl.git

Forward-port r15933 from rel_1_6_0: Default to "true" for email notification of holds in example configuration file
Fix minor typos in HoldNotify.pm log messages


git-svn-id: svn://svn.open-ils.org/ILS/trunk@15935 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/examples/opensrf.xml.example b/Open-ILS/examples/opensrf.xml.example
index 646979eba2..6231ae65e5 100644
--- a/Open-ILS/examples/opensrf.xml.example
+++ b/Open-ILS/examples/opensrf.xml.example
@@ -596,7 +596,7 @@ vim:et:ts=4:sw=4:
                 </unix_config>
                 <app_settings>
                     <notify_hold>
-                        <email>false</email> <!-- set to true for hold notice emails -->
+                        <email>true</email> <!-- set to false to disable hold notice emails -->
                     </notify_hold>
 
                     <!-- circulation policy scripts -->
diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/HoldNotify.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/HoldNotify.pm
index 7cb32831c2..674131695d 100644
--- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/HoldNotify.pm
+++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/HoldNotify.pm
@@ -127,7 +127,7 @@ sub send_email_notify {
 
 	unless ($U->is_true($self->hold->email_notify)) {
       $self->editor->rollback;
-		$logger->info("hold_notify: not sending hold notification becaue email_notify is false");
+		$logger->info("hold_notify: not sending hold notification because email_notify is false");
 		return 0;
 	}
 
@@ -145,7 +145,7 @@ sub send_email_notify {
 
 	unless( $str ) {
       $self->editor->rollback;
-		$logger->error("hold_notify: No email notifiy template found - cannot notify");
+		$logger->error("hold_notify: No email notify template found - cannot notify");
 		return 0;
 	}