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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/