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:
parent
d37dee3ddf
commit
6413eb9949
1 changed files with 11 additions and 2 deletions
|
@ -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 a new issue