Bugzilla – Attachment 101969 Details for
Bug 24765
Updated on date in Claims returned starts off as 01/01/1970
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24765: Updated on date in Claims returned starts off as 12/31/1969
Bug-24765-Updated-on-date-in-Claims-returned-start.patch (text/plain), 1.98 KB, created by
Jonathan Druart
on 2020-03-27 08:54:54 UTC
(
hide
)
Description:
Bug 24765: Updated on date in Claims returned starts off as 12/31/1969
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-03-27 08:54:54 UTC
Size:
1.98 KB
patch
obsolete
>From 4d0149e49a7453003c6a0906317d26d354ad4e73 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 2 Mar 2020 09:36:47 -0500 >Subject: [PATCH] Bug 24765: Updated on date in Claims returned starts off as > 12/31/1969 > >When an item is claimed returned by staff, there is a column called Updated On - this date field column should remain blank until this claimed returned has been updated. Currently, when an item has been claimed returned, the date in the updated column states 12/31/1969. This date only shows up in the display, it is doesn't show up in the database like this. > >Test Plan: >1) Enable return claims >2) Make a claim >3) Note the 'updated on' column has the date 1969-12-31 >4) Apply this patch >5) Reload the page ( you may need to clear your browser cache ) >6) Note the field is now blank > >Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >index 3900a151fc..e18c2a24c9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >@@ -928,8 +928,12 @@ $(document).ready(function() { > }, > { > "mDataProp": function ( oObj ) { >- let updated_on = new Date( oObj.updated_on ); >- return updated_on.toLocaleDateString(); >+ if ( oObj.updated_on ) { >+ let updated_on = new Date( oObj.updated_on ); >+ return updated_on.toLocaleDateString(); >+ } else { >+ return ""; >+ } > } > }, > { >-- >2.20.1
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 24765
:
99923
|
99924
|
101867
| 101969