bug 3049: display correct due date of renewed loans
authorGalen Charlton <galen.charlton@liblime.com>
Wed, 8 Apr 2009 19:46:01 +0000 (14:46 -0500)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Thu, 16 Apr 2009 15:46:03 +0000 (17:46 +0200)
commit54dffd855dbaf4285da02a203301f4e2d3980b12
tree292661d61f37ba84e5daf9dfdcce49a685c48a3b
parent6e5d95ec16210d91c1b39014e18934f53485e6c8
bug 3049: display correct due date of renewed loans

The intranet item display provided by moredetail.pl
would display the original due date of the item, and
would thus be incorrect if the item had been renewed
and got a different due date.

The incorrect date was coming from items.onloan,
which AddIssue() sets to the due date.  This patch
fixes the bug in two ways:

[1] AddRenewal() now updates items.onloan with the
    correct due date.
[2] Two templates were updated to display the
    due date from (indirectly) issues.date_due
    instead of items.onloan, thus making it less
    likely that the wrong value will be displayed.

This patch does *not* update items.onloan to reflect
the correct due date.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/Circulation.pm
catalogue/moredetail.pl
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tmpl
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tmpl