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.
Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 0dc0da7a3b)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
parent
87e55c8ff5
commit
afd493f26d
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue