Bugzilla – Attachment 151383 Details for
Bug 33639
Adding item to item group from 'Add item' screen doesn't work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33639: Fix selectors for adding to item group
Bug-33639-Fix-selectors-for-adding-to-item-group.patch (text/plain), 1.54 KB, created by
Lucas Gass
on 2023-05-17 22:27:57 UTC
(
hide
)
Description:
Bug 33639: Fix selectors for adding to item group
Filename:
MIME Type:
Creator:
Lucas Gass
Created:
2023-05-17 22:27:57 UTC
Size:
1.54 KB
patch
obsolete
>From 9bcb80efbd40a6849eba84bd55425013cc388b39 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Wed, 17 May 2023 22:26:14 +0000 >Subject: [PATCH] Bug 33639: Fix selectors for adding to item group > >To test: >Apply patch >1 - Browse to details page for a record >2 - Create or ensure the record has item group(s) >3 - Click New->New item >4 - Note the bottom of the page has a form to attach to existing group >5 - Note when a group is selected the enumchron field is populated if it is blank >6 - Note that the enumchron field is NOT update is there is a an existing value >7 - Confirm item is saved to group when saved >--- > koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js >index 65a86a2175..4996dc6cac 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js >@@ -135,10 +135,10 @@ $(document).ready(function(){ > } > > $('#item-group-add-or-create-form-select').on('change', function() { >- if ( ! $('input.items-enumchron').val() ) { >+ if ( ! $('input[name="items.enumchron"]').val() ) { > let item_group_selector = '#item-group-' + $(this).val(); > let enumchron = $(item_group_selector).val(); >- $('input.items-enumchron').val( enumchron ); >+ $('input[name="items.enumchron"]').val( enumchron ); > } > }); > }); >-- >2.30.2
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 33639
:
150422
|
151383
|
151428
|
160418
|
160441
|
160839