wintercms / wintercms/winter

NestedForm Inside Repeater Inherits Values From Parent From

Open
#1,415 0 comments 0 reactions 0 assignees View on GitHub

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.

Image
Steps to replicate
  1. Install test plugin
  2. Go to records page
  3. Add the required image and name then save the page
  4. Reload the page
  5. Add a new repeater item for the "Standard Repeater"
Workaround

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.