https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42825 --- Comment #4 from Paul Derscheid <paul.derscheid@lmscloud.de> --- Created attachment 200846 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=200846&action=edit Bug 42825: ERM Local Title - Start date (started_on) not saved for package resources The started_on field inside relationshipFields was missing indexRequired: true, which is required to generate a unique DOM id per row and correctly bind the flatpickr input to the Vue data model. The date_to componentProp also needs indexRequired: true so it references the correct indexed id of the ended_on field. Additionally, add a null check in calendar.inc before accessing ._flatpickr on the end date element to prevent a TypeError when the linked element is not found. To reproduce: 1. Go to ERM > eHoldings > Local > Titles 2. Create or edit a local title 3. Link it to a package and enter a Start date, End date and Proxy 4. Save 5. Reopen the title and click on the linked package row => Start date is empty; End date and Proxy are saved correctly Apply patch, then: 1. Go to ERM > eHoldings > Local > Titles 2. Create or edit a local title 3. Link it to a package and enter a Start date, End date and Proxy 4. Save 5. Reopen the title and click on the linked package row => Start date is now saved and displayed correctly => No TypeError in the browser console when selecting a start date Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> -- You are receiving this mail because: You are watching all bug changes.