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:
parent
85ea12515a
commit
350cf1df41
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue