NestedForm Inside Repeater Inherits Values From Parent From
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.5k
- Forks
- 246
- Avg merge
- 19h 2m
- Merged PRs (30d)
- 7
Description
Winter CMS Build
dev-develop
PHP Version
8.4
Database engine
MySQL/MariaDB
Plugins installed
No response
Issue description
The NestedForm inside a Repeater on the Records page in the Test plugin has an issue where when creating a new repeater item, the name is inherited from the parent form because they both contain a name property.
Steps to replicate
- Install test plugin
- Go to records page
- Add the required image and name then save the page
- Reload the page
- Add a new repeater item for the "Standard Repeater"
Workaround
No response
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.
Research direction
Install the test plugin and reproduce the problem on the Records page using the listed steps. Trace how NestedForm values are initialized inside a Standard Repeater when both forms contain a name property. Done means a newly added repeater item no longer inherits the parent form's name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100