Bugzilla – Attachment 8156 Details for
Bug 7701
Error when sending serial alerts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7701: Error when sending serial alerts
Bug-7701-Error-when-sending-serial-alerts.patch (text/plain), 1.14 KB, created by
Jared Camins-Esakov
on 2012-03-11 16:10:33 UTC
(
hide
)
Description:
Bug 7701: Error when sending serial alerts
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-03-11 16:10:33 UTC
Size:
1.14 KB
patch
obsolete
>From 11a40df6819cb114f5f281c05641bd2254296c10 Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Sun, 11 Mar 2012 12:13:15 -0400 >Subject: [PATCH] Bug 7701: Error when sending serial alerts >Content-Type: text/plain; charset="UTF-8" > >Probably due to bug 6875, C4::Letters is no longer used by C4::Serials, so that >when SendAlerts is called (exactly when this happens is a mystery to me), you >will get an error. Adding a "require C4::Letters;" and prefixing SendAlerts to >C4::Letters:: should fix it. >--- > C4/Serials.pm | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/C4/Serials.pm b/C4/Serials.pm >index ba0397c..eeb466b 100644 >--- a/C4/Serials.pm >+++ b/C4/Serials.pm >@@ -1073,7 +1073,8 @@ sub ModSerialStatus { > > # check if an alert must be sent... (= a letter is defined & status became "arrived" > if ( $val->{letter} && $status == 2 && $oldstatus != 2 ) { >- SendAlerts( 'issue', $val->{subscriptionid}, $val->{letter} ); >+ require C4::Letters; >+ C4::Leters::SendAlerts( 'issue', $val->{subscriptionid}, $val->{letter} ); > } > } > return; >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7701
:
8156
|
8663
|
8679