Bugzilla – Attachment 8169 Details for
Bug 7001
User Configurable Slips
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
follow-up patch fix protected letters
0001-bug_7001-protected-are-only-all-libraries-letters.patch (text/plain), 1.46 KB, created by
Srdjan Jankovic
on 2012-03-12 00:06:57 UTC
(
hide
)
Description:
follow-up patch fix protected letters
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2012-03-12 00:06:57 UTC
Size:
1.46 KB
patch
obsolete
>From 55580c3985bd762e3899ba55b518eaee584c58f9 Mon Sep 17 00:00:00 2001 >From: Srdjan Jankovic <srdjan@catalyst.net.nz> >Date: Mon, 12 Mar 2012 13:00:34 +1300 >Subject: [PATCH] bug_7001: protected are only all libraries letters > >--- > C4/Letters.pm | 3 +-- > tools/letter.pl | 2 +- > 2 files changed, 2 insertions(+), 3 deletions(-) > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index ce21a5d..af1ce82 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -255,7 +255,6 @@ sub findrelatedto ($$) { > sub SendAlerts { > my ( $type, $externalid, $letter_code ) = @_; > my $dbh = C4::Context->dbh; >- my $strsth; > if ( $type eq 'issue' ) { > > # prepare the letter... >@@ -306,7 +305,7 @@ sub SendAlerts { > > # prepare the letter... > # search the biblionumber >- $strsth = $type eq 'claimacquisition' >+ my $strsth = $type eq 'claimacquisition' > ? qq{ > SELECT aqorders.*,aqbasket.*,biblio.*,biblioitems.*,aqbooksellers.* > FROM aqorders >diff --git a/tools/letter.pl b/tools/letter.pl >index ae47810..eb9d6a6 100755 >--- a/tools/letter.pl >+++ b/tools/letter.pl >@@ -325,7 +325,7 @@ sub default_display { > my $loop_data = []; > my $protected_letters = protected_letters(); > foreach my $row (@{$results}) { >- $row->{protected} = $protected_letters->{ $row->{code}}; >+ $row->{protected} = !$row->{branchcode} && $protected_letters->{ $row->{code} }; > push @{$loop_data}, $row; > > } >-- >1.6.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 7001
:
6028
|
6047
|
6357
|
6854
|
6942
|
7042
|
7045
|
7096
|
7099
|
7111
|
7119
|
7129
|
7169
|
7283
|
7340
|
7416
|
7572
|
7673
|
7783
|
7796
|
7804
|
7936
|
8104
| 8169 |
8196