https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39795 Bug ID: 39795 Summary: Data loss when editing vendor.addressX Change sponsored?: --- Product: Koha Version: 24.11 Hardware: All OS: All Status: NEW Severity: major Priority: P5 - low Component: Acquisitions Assignee: koha-bugs@lists.koha-community.org Reporter: jonathan.druart@gmail.com QA Contact: testopia@bugs.koha-community.org Depends on: 38010 It's related to this code from vue/components/Vendors/VendorFormAdd.vue + let physical = ""; + vendor.address1 && (physical += vendor.address1 + "\n"); + vendor.address2 && (physical += vendor.address2 + "\n"); + vendor.address3 && (physical += vendor.address3 + "\n"); + vendor.address4 && (physical += vendor.address4 + "\n"); + this.vendor.physical = physical; + if (vendor.physical) { + const addressLines = vendor.physical.split("\n"); + if (addressLines.length > 4) { + addressLines.length = 4; + } + addressLines.forEach((line, i) => { + vendor[`address${i + 1}`] = line; + }); + } The existing bug has been ported when writing bug 38010 but it should be fixed. If you enter physical address on more than 4 lines, save => Only the first 4 lines are kept. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38010 [Bug 38010] Migrate vendors to Vue -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.