Bug 36008: Use notice_email_address instead of email for SendAlerts issue type
This change makes Koha use "notice_email_address" instead of "email" for SendAlerts with a type of "issue". This brings SendAlerts more in line with the rest of Koha Test plan: 0. Apply the patch 1. Create a subscription - Go to http://localhost:8081/cgi-bin/koha/serials/serials-home.pl - Click "New subscription" and follow the prompts / fill out required fields - On the first screen, ensure "Patron notification" says "New serial issue" (You can edit this after creating the subscription if necessary) 2. Click "subscribers" next to "Patron notification: SERIAL_ALERT" 3. Log into the OPAC, go to the bib record for that subscription, click "Subscriptions", and click "Subscribe to email notification on new issues" and click "Yes" on the subsequent screen 4. Edit your patron record and make sure you have an email in "Secondary email" and not "Primary email" 5. Set up a SMTP server for your Koha or some other email delivery mechanism 6. Go to the "Serial collection" for your subscription e.g. http://localhost:8081/cgi-bin/koha/serials/serials-collection.pl?subscriptionid=1 7. Click "Receive" 8. Mark the serial as "Arrived" 9. Click "Save" 10. Note that you receive an email using your Koha user's "Secondary Email" address Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
3a5d8d51ca
commit
e72ee54eb5
|
|
@ -308,7 +308,7 @@ sub SendAlerts {
|
|||
my $subscription = Koha::Subscriptions->find( $subscriptionid );
|
||||
my $subscribers = $subscription->subscribers;
|
||||
while ( my $patron = $subscribers->next ) {
|
||||
my $email = $patron->email or next;
|
||||
my $email = $patron->notice_email_address or next;
|
||||
|
||||
# warn "sending issues...";
|
||||
my $userenv = C4::Context->userenv;
|
||||
|
|
|
|||
Loading…
Reference in New Issue