Bugzilla – Attachment 33660 Details for
Bug 13286
Checkouts table due date not updated when an item is renewed.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 13286 - Checkouts table due date not updated when an item is renewed.
SIGNED-OFF-Bug-13286---Checkouts-table-due-date-no.patch (text/plain), 1.91 KB, created by
Owen Leonard
on 2014-11-18 16:13:19 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 13286 - Checkouts table due date not updated when an item is renewed.
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2014-11-18 16:13:19 UTC
Size:
1.91 KB
patch
obsolete
>From 53a895e0bc5efc511c34d00673f20b0f697d57bb Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 18 Nov 2014 09:17:40 -0500 >Subject: [PATCH] [SIGNED-OFF] Bug 13286 - Checkouts table due date not > updated when an item is renewed. >Content-Type: text/plain; charset="utf-8" > >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 <oleonard@myacpl.org> > >This works well in my test. My librarians will be grateful for the fix >-- they were complaining about this bug. >--- > 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 9a022df..5c18219 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js >+++ b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js >@@ -94,6 +94,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" ) { >@@ -201,6 +202,8 @@ $(document).ready(function() { > due += "<span class='dmg'>" + oObj.damaged + "</span>"; > } > >+ due = "<span id='date_due_" + oObj.itemnumber + "' class='date_due'>" + due + "</span>"; >+ > return due; > } > }, >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13286
:
33657
|
33658
|
33660
|
33699