Bug 20660: Return date override affects debarments in AddReturn
Re-did the patch to follow best practices. TEST PLAN: 0. Apply first patch only 1. prove t/db_dependent/Circulation.t 2. Apply second patch 3. prove t/db_dependent/Circulation.t prove should fail the first time and pass the second time. Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
8d9eb9734f
commit
bf9527457f
1 changed files with 1 additions and 0 deletions
|
@ -1988,6 +1988,7 @@ sub AddReturn {
|
|||
|
||||
if ( $issue and $issue->is_overdue ) {
|
||||
# fix fine days
|
||||
$today = $return_date if $return_date;
|
||||
$today = $dropboxdate if $dropbox;
|
||||
my ($debardate,$reminder) = _debar_user_on_return( $patron_unblessed, $item, dt_from_string($issue->date_due), $today );
|
||||
if ($reminder){
|
||||
|
|
Loading…
Reference in a new issue