http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8486

Koha Team Lyon 3 <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #15 from Koha Team Lyon 3 <[email protected]> ---
May be I missed something  (I was away for a long time) but at first sight, I
suspect that this patch leaves bug 8251 unsolved ("Patrons systematically
debarred at checkin") : in days_between subroutine, delta_days function returns
always a positive number (see Description of bug 8251). If so
so it would be necessary to add the following condition :
if(DateTime->compare( $start_dt, $end_dt ) > -1){
    $days = $duration->inverse;
} else {
for (my $dt = $start_dt->clone();
       $dt <= $end_dt;
       $dt->add(days => 1)
    ) {
        if ($self->is_holiday($dt)) {
            $days--;
         }
    }
}

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to