Skip to content

[codex] Restore selected old PR fixes#175

Merged
66Ton99 merged 1 commit into
formapro:masterfrom
66Ton99:codex/restore-old-pr-fixes
Jun 4, 2026
Merged

[codex] Restore selected old PR fixes#175
66Ton99 merged 1 commit into
formapro:masterfrom
66Ton99:codex/restore-old-pr-fixes

Conversation

@66Ton99
Copy link
Copy Markdown
Collaborator

@66Ton99 66Ton99 commented Jun 4, 2026

What changed

Why

The old PRs were conflicting after the Symfony revival, but both contained small valid fixes that can be applied cleanly to the modernized codebase. These changes preserve the existing public behavior where possible: preparePrototype() still accepts an explicit id segment, but defaults to the item name when addPrototype() is the caller.

Validation

  • php /tmp/jsfv-composer.phar validate --strict
  • php /tmp/jsfv-composer.phar test
  • npm test
  • git diff --check

Port the safe parts of old pull requests formapro#137 and formapro#141 onto the revived codebase.

Return BadRequestHttpException when the UniqueEntity Ajax endpoint receives a malformed request without the required data payload, and cover that behavior in the controller test.

Fix collection prototype id generation so addPrototype does not duplicate the parent id prefix, while keeping preparePrototype backward-compatible with callers that pass an explicit id segment.

Add JavaScript regression coverage for preparePrototype and addPrototype id generation.

Validation: php /tmp/jsfv-composer.phar validate --strict; php /tmp/jsfv-composer.phar test; npm test; git diff --check.

Co-authored-by: Codex <codex@openai.com>
@66Ton99 66Ton99 marked this pull request as ready for review June 4, 2026 16:44
@66Ton99 66Ton99 merged commit 58ee745 into formapro:master Jun 4, 2026
4 checks passed
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.

1 participant