orchidsoftware / orchidsoftware/platform
Allowing persistent data with Matrix and other Fields in Listener
@tabuna is already working on this.
Since Feb 13, 2023.
- Dominant language
- PHP
- Stars
- 4.8k
- Forks
- 662
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 7
Description
Is your feature request related to a problem? Please describe.
When a Matrix and any other Field types share a Layout that's working under a Listener, the Matrix does not have its values persisted across updates to the targets defined elements, even when including it in the extraVars or the same targets variables.
Describe the solution you'd like
Have the Matrix set columns/rows' values persist after updating some other Fields that share with it the same Layout and Listener.
Describe alternatives you've considered
An alternative would be just keeping 2 separated Layouts — that is, 1 for the Matrix and 1 for the remaining Fields, nested within the Listener if need be —, but I feel like it would be more flexible this way.
Additional context
Originally brought up by user @plamenradev in #2411 and verified by me as described above.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.