Bugzilla – Attachment 6886 Details for
Bug 7266
overdue.pl : filter on flags "debarred" "suspended" and "gonenoaddress" not working
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7266: flags debarred, suspended, gonenoaddress in overdue
Bug-7266-flags-debarred-suspended-gonenoaddress-in.patch (text/plain), 1.32 KB, created by
Chris Cormack
on 2011-12-20 08:54:05 UTC
(
hide
)
Description:
Bug 7266: flags debarred, suspended, gonenoaddress in overdue
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2011-12-20 08:54:05 UTC
Size:
1.32 KB
patch
obsolete
>From 5d25babe2a116fbfd92c876eb1e6d5bf1d4d6426 Mon Sep 17 00:00:00 2001 >From: Adrien Saurat <adrien.saurat@biblibre.com> >Date: Tue, 20 Dec 2011 09:33:47 +0100 >Subject: [PATCH] Bug 7266: flags debarred, suspended, gonenoaddress in > overdue > >This patch makes these flags functionnal. > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > circ/overdue.pl | 10 +++++++++- > 1 files changed, 9 insertions(+), 1 deletions(-) > >diff --git a/circ/overdue.pl b/circ/overdue.pl >index e59961a..a7207b7 100755 >--- a/circ/overdue.pl >+++ b/circ/overdue.pl >@@ -274,7 +274,15 @@ if ($noreport) { > $strsth.=" AND biblioitems.itemtype = '" . $itemtypefilter . "' "; > } > } >- $strsth.=" AND borrowers.flags = '" . $borflagsfilter . "' " if $borflagsfilter; >+ if ( $borflagsfilter eq 'gonenoaddress' ) { >+ $strsth .= " AND borrowers.gonenoaddress <> 0"; >+ } >+ elsif ( $borflagsfilter eq 'debarred' ) { >+ $strsth .= " AND borrowers.debarred >= CURDATE()" ; >+ } >+ elsif ( $borflagsfilter eq 'lost') { >+ $strsth .= " AND borrowers.lost <> 0"; >+ } > $strsth.=" AND borrowers.branchcode = '" . $branchfilter . "' " if $branchfilter; > $strsth.=" AND date_due < '" . $datedueto . "' " if $datedueto; > $strsth.=" AND date_due > '" . $dateduefrom . "' " if $dateduefrom; >-- >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 7266
:
6407
|
6519
|
6884
| 6886