From f2a9b64b2d59890a7a14f38692963848bd9e9092 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Wed, 18 Jan 2012 11:08:58 -0500 Subject: [PATCH] Revert "Bug 7266: flags debarred, suspended, gonenoaddress in overdue" This reverts commit 057b4ae129d460bd18fb81cf2685a29c2ab73d0b. Reverting this commit from 3.6.x as it is dependent upon 6328 --- circ/overdue.pl | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/circ/overdue.pl b/circ/overdue.pl index a7207b711b..e59961a302 100755 --- a/circ/overdue.pl +++ b/circ/overdue.pl @@ -274,15 +274,7 @@ if ($noreport) { $strsth.=" AND biblioitems.itemtype = '" . $itemtypefilter . "' "; } } - 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.flags = '" . $borflagsfilter . "' " if $borflagsfilter; $strsth.=" AND borrowers.branchcode = '" . $branchfilter . "' " if $branchfilter; $strsth.=" AND date_due < '" . $datedueto . "' " if $datedueto; $strsth.=" AND date_due > '" . $dateduefrom . "' " if $dateduefrom; -- 2.39.5