Bugzilla – Attachment 13799 Details for
Bug 9180
Default rules are not always used for overdues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9180 : Use default overdue rules when specific rules are not defined for a branch
Bug-9180--Use-default-overdue-rules-when-specific-.patch (text/plain), 1.51 KB, created by
Sophie MEYNIEUX
on 2012-11-30 14:41:03 UTC
(
hide
)
Description:
Bug 9180 : Use default overdue rules when specific rules are not defined for a branch
Filename:
MIME Type:
Creator:
Sophie MEYNIEUX
Created:
2012-11-30 14:41:03 UTC
Size:
1.51 KB
patch
obsolete
>From f943ff784399e1db0be68d52ae6ea3cacafdf48b Mon Sep 17 00:00:00 2001 >From: Sophie Meynieux <sophie.meynieux@biblibre.com> >Date: Fri, 30 Nov 2012 15:31:39 +0100 >Subject: [PATCH] Bug 9180 : Use default overdue rules when specific rules are > not defined for a branch > > Test plan : > - define default overdue rules > - define overdue rules for one branch > - find a user with late documents in another branch > > Without the patch, if you run misc/cronjobs/overdue_notices.pl -n -v > you can see that only branch with specific rules is processed. The user does not get any notice. > > With the patch all branches are processes, those without specific rules using default rules. A notice is generated for the user. >--- > C4/Overdues.pm | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/C4/Overdues.pm b/C4/Overdues.pm >index ac66c36..668e2ee 100644 >--- a/C4/Overdues.pm >+++ b/C4/Overdues.pm >@@ -1025,7 +1025,7 @@ returns a list of branch codes for branches with overdue rules defined. > > sub GetBranchcodesWithOverdueRules { > my $dbh = C4::Context->dbh; >- my $rqoverduebranches = $dbh->prepare("SELECT DISTINCT branchcode FROM overduerules WHERE delay1 IS NOT NULL AND branchcode <> '' ORDER BY branchcode"); >+ my $rqoverduebranches = $dbh->prepare("SELECT DISTINCT branchcode FROM overduerules WHERE delay1 IS NOT NULL ORDER BY branchcode"); > $rqoverduebranches->execute; > my @branches = map { shift @$_ } @{ $rqoverduebranches->fetchall_arrayref }; > if (!$branches[0]) { >-- >1.7.5.4
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 9180
:
13799
|
22574
|
25947
|
27427
|
29548
|
30392