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)
committerGalen Charlton <galen.charlton@liblime.com>
Wed, 8 Apr 2009 19:51:32 +0000 (14:51 -0500)
commit684cea430969edddf852eab4c1456a0398dc7c2f
tree292661d61f37ba84e5daf9dfdcce49a685c48a3b
parent43bb27b8dae92f26ce348a735b86497ea1f42a24
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