Bugzilla – Attachment 150422 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.65 KB, created by
Lucas Gass
on 2023-04-28 23:49:44 UTC
(
hide
)
Description:
Bug 33639: Fix selectors for adding to item group
Filename:
MIME Type:
Creator:
Lucas Gass
Created:
2023-04-28 23:49:44 UTC
Size:
1.65 KB
patch
obsolete
>From 82a220a47b94ce242b9d7d59031f8c8cf0e2c02b Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 28 Apr 2023 23:47:13 +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 >6 - Confirm item is saved to group when saved > >Note: this does not fix the 'Create new item group' feature in the dropdown. I am having trouble seeing why that would work in the first in place! >--- > koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js | 8 +++----- > 1 file changed, 3 insertions(+), 5 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..9cffe17ab7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js >@@ -135,11 +135,9 @@ $(document).ready(function(){ > } > > $('#item-group-add-or-create-form-select').on('change', function() { >- if ( ! $('input.items-enumchron').val() ) { >- let item_group_selector = '#item-group-' + $(this).val(); >- let enumchron = $(item_group_selector).val(); >- $('input.items-enumchron').val( enumchron ); >- } >+ let item_group_selector = '#item-group-' + $(this).val(); >+ let enumchron = $(item_group_selector).val(); >+ $('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