Bugzilla – Attachment 190384 Details for
Bug 41417
500 error when creating new authorized values from additem.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41417: Fix client variable in cataloging.js
Bug-41417-Fix-client-variable-in-catalogingjs.patch (text/plain), 1.53 KB, created by
Lucas Gass (lukeg)
on 2025-12-09 20:57:55 UTC
(
hide
)
Description:
Bug 41417: Fix client variable in cataloging.js
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-12-09 20:57:55 UTC
Size:
1.53 KB
patch
obsolete
>From 109d5a0a6d8f68bd1b08092bf1a5ff7fbc7c2c67 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 9 Dec 2025 20:55:45 +0000 >Subject: [PATCH] Bug 41417: Fix client variable in cataloging.js > >To test: >1. Find or create a record in Kkoha. >2. From the record detail page click "Edit" and "Manage items" >3. Begin adding a new item >4. For any of the dropdowns that contain an authorized value ( LOST, DAMAGED, WITHDRAWN, CCODE, LOC ) click on the dropdown and begin typing an AV that doesn't exist. >5. You should see the text (select to create) appear, click it. >6. Now a modal appears "Create a new authorized value" >7. Fill out the required parts and click 'Save'. >8. Kaboom, 500 error: >9. APPLY PATCH, clear browser cache. >10. Try again, this time it should work. >--- > koha-tmpl/intranet-tmpl/prog/js/cataloging.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >index f35750951a1..a730e108612 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js >@@ -768,7 +768,7 @@ $(document).ready(function () { > var description = form.description.value; > var opac_description = form.opac_description.value; > >- const client = APIClient.authorised_value; >+ const client = APIClient.authorised_values; > client.values > .create({ category, value, description, opac_description }) > .then( >-- >2.39.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 41417
:
190384
|
190385