Permalink
Browse files

US748: Lost borrower relationships

Code was claiming the relationship was expired if
proxy_relationships.date_expires was > than today's date.
Obviously this logic was reversed.
  • Loading branch information...
dlbptfs authored and pjones9 committed Sep 14, 2010
1 parent 3a2cdcc commit 3d7b45497ba7779f55f44162e44c1c27a8e30485
Showing with 1 addition and 1 deletion.
  1. +1 −1 circ/circulation.pl
View
@@ -262,7 +262,7 @@
for my $proxy_relationship (@$proxy_relationships) {
# handle expired relationships
unless (!$proxy_relationship->{date_expires} || $proxy_relationship->{date_expires} eq "") {
- $proxy_relationship->{expired} = ( C4::Dates->new($proxy_relationship->{date_expires},'iso') > $today );
+ $proxy_relationship->{expired} = ( C4::Dates->new($proxy_relationship->{date_expires},'iso') < $today );
}
$proxy_relationship->{selected} = 1 if $proxy_relationship->{proxy_borrowernumber} == $proxy_borrowernumber;
}

0 comments on commit 3d7b454

Please sign in to comment.