Skip to content

FOUR-34454 | A Record List Component Deletes Signature Data - #1945

Open
mcraeteisha wants to merge 1 commit into
developfrom
bugfix/FOUR-34454
Open

mcraeteisha wants to merge 1 commit into
developfrom
bugfix/FOUR-34454

Conversation

@mcraeteisha

@mcraeteisha mcraeteisha commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Issue

Ticket: FOUR-34454

Regression from FOUR-32231 (PR #1920): closing the Record List Add modal emitted global record-list-add-modal-hidden, and package-signature cleared every mounted Signature. Adding a Record List entry wiped unrelated signature values (e.g. parent fields and loop signatures) while keeping signatures on the new row.

Root cause on the screen-builder side: handleHideAddModal in form-record-list.vue emitted the event with no target, so listeners could not tell which Add modal closed.

Solution

screen-builder

  • In form-record-list.vue handleHideAddModal, emit record-list-add-modal-hidden with { modalEl } from this.$refs.addModal.$el (null-safe).
  • Event name and hide timing are unchanged from PR Clear signature field when reopening the Record List Add modal #1920; payload is additive.
  • In isWebEntryFile, use optional chaining (content[0]?.file) so empty or malformed array cell values do not throw Cannot read properties of undefined (reading 'file') when the Record List table re-renders (e.g. while drawing signatures).

How To Test

  1. Preview a screen with signatures outside the Record List and a Signature in the Add form; complete signatures; Add a row; click OK. Ensure outside signatures remain and row signatures remain.
  2. Select Add → sign inside the modal → Cancel → reopen the modal. Ensure the modal Signature is cleared (FOUR-32231 still works).
  3. With two Record Lists on one screen, confirm closing one Add modal does not wipe the other list’s unrelated parent-level signatures.
  4. While drawing signatures on a screen that includes a Record List, confirm the console no longer shows TypeError: Cannot read properties of undefined (reading 'file') from isWebEntryFile.

ci:package-signature:bugfix/FOUR-34454
ci:deploy

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

Pass the Add modal element with the hidden event so listeners can target only its controls. Safely handle empty content arrays when checking file values.
@nolanpro

Copy link
Copy Markdown
Contributor

QA server K8S was successfully deployed https://tenant-1.ci-eeb5cf3274.engk8s.processmaker.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants