[Koha-bugs] [Bug 33621] Some JS and CSS problems since 22.11.04

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 27 02:03:03 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33621

--- Comment #4 from David Cook <dcook at prosentient.com.au> ---
(In reply to Aleisha Amohia from comment #0)
> to reproduce: set the ClaimReturnedLostValue system preference. check out an
> item, then do a return claim. once the button is clicked, it looks like it
> keeps loading or processing until you refresh the page

There is a Javascript error that shows up in the console:

circulation.pl:1365 Uncaught TypeError: value.match is not a function
    at window.$date (circulation.pl:1365:26)
    at window.$datetime (circulation.pl:1384:20)
    at Object.success (circulation.pl:1855:33)
    at c (jquery-3.6.0.min_22.1104000.js:2:28327)
    at Object.fireWith [as resolveWith]
(jquery-3.6.0.min_22.1104000.js:2:29072)
    at l (jquery-3.6.0.min_22.1104000.js:2:79901)
    at XMLHttpRequest.<anonymous> (jquery-3.6.0.min_22.1104000.js:2:82355)

It looks like it's just a bug in some Javascript in circulation.pl or with the
API /api/v1/return_claims. 

As often happens in Koha, there isn't enough error checking/handling. 

I'll leave that one for you to investigate.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list