FOUR-32834: Preserve Collection Record Control mode - #1930
Open
eiresendez wants to merge 1 commit into
Open
Conversation
screen-builder
|
||||||||||||||||||||||||||||||||||
| Project |
screen-builder
|
| Branch Review |
task/FOUR-32834
|
| Run status |
|
| Run duration | 09m 40s |
| Commit |
|
| Committer | Eleazar Resendez |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
1
|
|
|
0
|
|
|
19
|
|
|
0
|
|
|
392
|
| View all changes introduced in this branch ↗︎ | |
Tests for review

tests/e2e/specs/LoopFileUpload.spec.js • 1 failed test • CI - Chrome
| Test | Artifacts | |
|---|---|---|
| FOUR-2164 Loop FileUpload > Test render of screen with Loop>FileUpload |
Test Replay
Screenshots
|
|
Contributor
|
QA server K8S was successfully deployed https://ci-178ddcc9bb.engk8s.processmaker.net |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue & Reproduction Steps
When two Collection Record Controls use the same dynamic Record ID but different modes, resolving the Record ID causes both controls to display the Edit Screen.
To reproduce, configure two controls against the same collection using
{{option}}as the Record ID, set one to Edit and the other to View, open Preview, and enter a valid record ID.Expected behavior: Each control preserves its configured mode and loads the corresponding Update or Read Screen.
Actual behavior: Both controls load the Update Screen in Edit mode.
Solution
collectionmode.modeIdwhenever the dynamic Record ID changes.How to Test
npx jest tests/unit/FormCollectionRecordControl.spec.js --runInBand.npm run build-bundle.dist/contents into Core and runnpm run dev.1inoptionand verify that the first control remains editable while the second displays its Read Screen.Related Tickets & Packages
@processmaker/screen-builderci:deploy