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>
This commit is contained in:
Martin Renvoize 2014-12-16 17:15:58 +00:00 committed by Tomas Cohen Arazi
parent d37dee3ddf
commit 6413eb9949

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;
}
}
}