[Koha-bugs] [Bug 32175] Item info not cloning when receiving multiple items due to Flatpickr issue

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 11 00:33:12 CET 2022


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

--- Comment #3 from David Cook <dcook at prosentient.com.au> ---
Created attachment 143738
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=143738&action=edit
Bug 32175: Prevent Javascript error by checking for kohafield sibling

This patch checks for kohafield sibling before proceeding with
data clone when creating items during receival.

If the kohafield sibling is not available, don't try to clone the
value.

Test plan:
1. Create a test vendor
2. Create a test basket (create item on receival)
3. Create a test order for 3 items
4. Close the test basket
5. Receive the order
6. Fill out many item fields including "Date acquired"
7. Click "Add item"
8. Note that the fields aren't cloned and there is a Javascript error
in the console

9. Apply the patch

10. Refresh the page
11. Fill out many item fields including "Date acquired"
12. Click "Add item"
13. Note that the fields are cloned, except "Date acquired"

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


More information about the Koha-bugs mailing list