From 01795f7ed9fda5e044fda1aeb4fed4b5cfbf870f Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 18 Nov 2014 09:17:40 -0500 Subject: [PATCH] Bug 13286 - Checkouts table due date not updated when an item is renewed. When an item is renewed from the checkouts table, the new due date is displayed in the renewal column, but the old date due is still displayed in the due date column. This should be updated as well. Test Plan: 1) Apply this patch 2) Renew an item from the checkouts table 3) Note the date due is updated in the "Due date" column Signed-off-by: Owen Leonard This works well in my test. My librarians will be grateful for the fix -- they were complaining about this bug. Signed-off-by: Katrin Fischer Works as described, passes tests and QA script. Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js index f03b13e1cf..8bda3f2382 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js @@ -92,6 +92,7 @@ $(document).ready(function() { var content = ""; if ( data.renew_okay ) { content = CIRCULATION_RENEWED_DUE + " " + data.date_due; + $('#date_due_' + data.itemnumber).replaceWith( data.date_due ); } else { content = CIRCULATION_RENEW_FAILED + " "; if ( data.error == "no_checkout" ) { @@ -174,6 +175,8 @@ $(document).ready(function() { due += "" + oObj.damaged + ""; } + due = "" + due + ""; + return due; } } -- 2.39.5