fix: imported records cannot be edited after import (Closes #161) #189
Reference in New Issue
Block a user
Delete Branch "feature/issue-161-bug-imported-records-cannot-be-edited-after-import"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes the bug where records imported via CSV/ZIP import wizard could not be edited in the UI. The root cause was that the frontend's
save()function sent read-only system fields (createdAt,updatedAt,deletedAt,id) alongside editable fields in the PUT request. This polluted the backend's validation merge and could cause unexpected behavior. Additionally, save errors replaced the entire form view, making failures appear silent.Changes
MemberDetail.vue): Explicitly construct the update payload with only editable member fields, matching the pattern already used inFamilyDetail.vueMemberDetail.vue): Add inline save error banner (saveErrorref) that displays within the form instead of replacing it via thev-else-ifchainMemberService::update): Add field allowlist usingarray_intersect_keyto filter out any non-editable fields before processingMemberService::update): Add missingeinwilligungDatumsetter in the update field chaintestUpdateFiltersOutSystemFieldsandtestUpdateImportedMemberSucceedstestsCloses #161