BUG 13468: Overdue notice lists all checked out books

This patch should fix the issue when running under 'triggered' mode

To test:

1) Run overdue_notices.pl -t -n [to output notices to command
line]
2) Note that the notices output, list ALL checked out items
3) Apply Patch
4) Run again
5) Note the difference

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Amended patch: remove space changes.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 6413eb9949)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Martin Renvoize 2014-12-16 17:15:58 +00:00 committed by Chris Cormack
parent 85ea12515a
commit 350cf1df41
1 changed files with 11 additions and 2 deletions

View File

@ -621,8 +621,17 @@ END_SQL
}
}
else {
unless ($days_between >=$mindays && $days_between <= $maxdays){
next;
if ($triggered) {
if ( $mindays != $days_between ) {
next;
}
}
else {
unless ( $days_between >= $mindays
&& $days_between <= $maxdays )
{
next;
}
}
}