From 75c3cda017e4998974fad285e21bf63b08e4fce6 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 12 Dec 2016 06:59:30 -0500 Subject: [PATCH] Bug 17761 - Renewing or returning item via the checkouts table causes lost and damaged statuses to disappear Due to the fact that the lost and damaged status are contained within the due_due span, when the item is renewed or returned these statuses disappear. Some librarians find this disconcerting and it seems that it would be better to keep the visible. Test Plan: 1) Find a lost item checked out to a patron 2) Renew that lost item via the checkouts table 3) Notice the lost status disappears from that row 4) Apply this patch 5) Refresh the page ( you may want to clear your browser cache as well ) 6) Renew the item again 7) The lost status should remain visible! Signed-off-by: Kyle M Hall Signed-off-by: Edie Discher Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit 97eb773c0a4054f0538c8966e207734f6f56bdd5) Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index b8416c636d..de0a0a509f 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -203,6 +203,8 @@ $(document).ready(function() { due = "" + due + ""; } + due = "" + due + ""; + if ( oObj.lost ) { due += "" + oObj.lost + ""; } @@ -211,7 +213,6 @@ $(document).ready(function() { due += "" + oObj.damaged + ""; } - due = "" + due + ""; return due; } -- 2.39.5