Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FormBundle][GeneratorBundle] Fix constraints on form pageparts #2436

Merged

Conversation

Devolicious
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets #2435

The form pageparts use the default constraints option to pass the constraints from the adaptForm method to the actual form. Problem is that this will set the constraints on the parent Form object also which means that if you have for instance a SingleLineTextPagePart that is not required and used a pattern to be filled in, the form will be stuck because of the constraints that are set on the StringFormSubmissionType while the validation on the value property passes.

Copy link

@ProfessorKuma ProfessorKuma left a comment

Choose a reason for hiding this comment

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

Hi @Devolicious, your PR needs some changes

  • It seems that you should have submitted to the latest minor branch.

@Devolicious Devolicious merged commit e1a4372 into Kunstmaan:5.2 May 8, 2019
@Devolicious Devolicious deleted the fix/formpageparts_constraints branch May 8, 2019 08:56
acrobat added a commit that referenced this pull request May 10, 2019
* 5.2:
  Update changelog for 5.2.5 release
  [FormBundle][GeneratorBundle] Fix constraints on form pageparts  (#2436)
  [AdminBundle] fix timepicker of publish & unpublish modals (#2431)
acrobat added a commit to acrobat/KunstmaanBundlesCMS that referenced this pull request May 20, 2019
* master:
  Bump composer branch alias for 5.4.0 development
  Update changelog for 5.3.0 release
  Update changelog for 5.2.5 release
  New Crowdin translations (Kunstmaan#2437)
  [FormBundle][GeneratorBundle] Fix constraints on form pageparts  (Kunstmaan#2436)
  [AdminListBundle] [TranslatorBundle] Option to filter on empty fields in StringFilterType. (Kunstmaan#2434)
  [AdminBundle] fix timepicker of publish & unpublish modals (Kunstmaan#2431)
  fix admin test generator (Kunstmaan#2432)
  Fix addField docblock param for AbstractAdminListConfigurator (Kunstmaan#2433)
  [NodeBundle] Register services that enable the node bundle entity tabs (Kunstmaan#2430)
  [GeneratorBundle] Added fos user config to generator (Kunstmaan#2427)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants