Bugzilla – Attachment 45181 Details for
Bug 10076
Add Bcc syspref for claimacquisition and clamissues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10076 - Add Bcc syspref for ClaimAcquisition and ClaimIssues
Bug-10076---Add-Bcc-syspref-for-ClaimAcquisition-a.patch (text/plain), 3.66 KB, created by
Charles Farmer
on 2015-11-26 14:58:29 UTC
(
hide
)
Description:
Bug 10076 - Add Bcc syspref for ClaimAcquisition and ClaimIssues
Filename:
MIME Type:
Creator:
Charles Farmer
Created:
2015-11-26 14:58:29 UTC
Size:
3.66 KB
patch
obsolete
>From 69cd6b6fd5d3f913f3dc76acc143fc246cc21c02 Mon Sep 17 00:00:00 2001 >From: Charles Farmer <charles.farmer@inlibro.com> >Date: Thu, 26 Nov 2015 09:54:47 -0500 >Subject: [PATCH] Bug 10076 - Add Bcc syspref for ClaimAcquisition and > ClaimIssues > >This is a squash of the previous three patches, with capitalization of the syspref 'ClaimsBccCopy' >--- > C4/Letters.pm | 2 ++ > installer/data/mysql/atomicupdate/Bug10076_ClaimsBccCopy.sql | 2 ++ > installer/data/mysql/sysprefs.sql | 1 + > .../prog/en/modules/admin/preferences/acquisitions.pref | 8 ++++++++ > 4 files changed, 13 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/Bug10076_ClaimsBccCopy.sql > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index bc60bc3..45268fa 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -547,6 +547,8 @@ sub SendAlerts { > if C4::Context->preference('ReplytoDefault'); > $mail{'Sender'} = C4::Context->preference('ReturnpathDefault') > if C4::Context->preference('ReturnpathDefault'); >+ $mail{'Bcc'} = $userenv->{emailaddress} >+ if C4::Context->preference("ClaimsBccCopy"); > > unless ( sendmail(%mail) ) { > carp $Mail::Sendmail::error; >diff --git a/installer/data/mysql/atomicupdate/Bug10076_ClaimsBccCopy.sql b/installer/data/mysql/atomicupdate/Bug10076_ClaimsBccCopy.sql >new file mode 100644 >index 0000000..6e4eeab >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/Bug10076_ClaimsBccCopy.sql >@@ -0,0 +1,2 @@ >+INSERT INTO systempreferences (variable,value,options,explanation,type) >+VALUES ('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'); >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 484b3cd..81117cf 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -91,6 +91,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('CircAutocompl','1',NULL,'If ON, autocompletion is enabled for the Circulation input','YesNo'), > ('CircAutoPrintQuickSlip','qslip',NULL,'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window or Clear the screen.','Choice'), > ('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'), >+('ClaimsBccCopy','0','','Bcc the ClaimAcquisition and ClaimIssues alerts','YesNo'), > ('Coce','0', NULL, 'If on, enables cover retrieval from the configured Coce server', 'YesNo'), > ('CoceHost', NULL, NULL, 'Coce server URL', 'Free'), > ('CoceProviders', NULL, 'aws,gb,ol', 'Coce providers', 'multiple'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref >index b52b5a9..d2414a2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref >@@ -60,6 +60,14 @@ Acquisitions: > type: textarea > - "You can use the following fields: price, quantity, budget_code, discount, sort1, sort2" > - "<br/>For example:<br/>price: 947$a|947$c<br/>quantity: 969$h<br/>budget_code: 922$a" >+ - >+ - Send a copy in bcc of the ClaimAcquisition and ClaimIssues letters to the active user >+ - pref: ClaimsBccCopy >+ default: no >+ choices: >+ yes: Send >+ no: Don't send >+ > Printing: > - > - Use the >-- >1.9.1
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 10076
:
17853
|
30632
|
31262
|
31397
|
40843
|
40844
|
40845
|
45181
|
45183
|
45264
|
45350
|
45361