Skip to content

Conversation

@Daric971
Copy link
Contributor

@Daric971 Daric971 commented Oct 24, 2024

Subject

I am targeting this branch, because it has been noticed that form validation errors are not raised when dealing with collectionFields.
This PR provides a solution to this problem.

Closes #1770.

Changelog

### Added
- In composer.js ,  `handleBlockCollectionErrors()` to check collection formgroup

@Daric971 Daric971 force-pushed the feat/conmposejs/collection-error-message branch 4 times, most recently from 702ecae to cb55bbe Compare October 29, 2024 09:03
@VincentLanglet
Copy link
Member

Hi @Daric971 ; can you rebase 4.x ? Thanks

@Daric971 Daric971 force-pushed the feat/conmposejs/collection-error-message branch from cb55bbe to af444db Compare March 3, 2025 10:06
@VincentLanglet
Copy link
Member

JS build is failing you might need to rebuild it

@Daric971 Daric971 force-pushed the feat/conmposejs/collection-error-message branch from af444db to fd65106 Compare March 3, 2025 14:00
@VincentLanglet VincentLanglet requested a review from a team March 3, 2025 14:11
@VincentLanglet
Copy link
Member

WDYT @jordisala1991

@VincentLanglet
Copy link
Member

@eerison Any opinion on this, I never used SonataPageBundle.

*
* @param violation
*/
handleBlockCollectionErrors(violation) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Daric971

Did you copy this function from somewhere, or did you do it from scratch?

@eerison
Copy link
Contributor

eerison commented Sep 14, 2025

@eerison Any opinion on this, I never used SonataPageBundle.

Hey @VincentLanglet

Well I barely changed fronted code on pageBundle... looking the code it self, it's fine... but the we can not be sure without test 😐. As it is an old PR and no one else complain about it. Maybe it is an isolated case? I'm not sure.

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.

Form validation errors for a block do not display for the CollectionType

3 participants