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

IBX-8350: Text line fields which is not marked as required, but has a minimum length constraint set, is basically treated as required in JS validation #2120

Conversation

vidarl
Copy link
Member

@vidarl vidarl commented Jun 5, 2024

Question Answer
Tickets <IBX-8350
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

When input is checked for length constrains in JS, it is not taken into account whatever the field is empty or not. ( As long as the field is not required, it is okay that the value is empty even if it has a constrain on minimum characters )

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

… minimum length constraint set, is basically treated as required
Copy link

sonarcloud bot commented Jun 5, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@vidarl vidarl requested a review from a team June 5, 2024 11:46
@bogusez bogusez self-assigned this Jul 1, 2024
@webhdx
Copy link
Contributor

webhdx commented Jul 2, 2024

@vidarl Please change the branch name to something more concise and do not use comma (dash and underscore characters are fine). It doesn't play well with composer and CI scripts.

@vidarl
Copy link
Member Author

vidarl commented Jul 2, 2024

Right, I didn't notice the comma in the branch name.. Will rename branch. That means PR will be closed though

@vidarl vidarl closed this Jul 2, 2024
@vidarl vidarl deleted the IBX-8350_Text_line_fields_which_is_not_marked_as_required,_but_has_a_minimum_length_constraint_set_is_basically_treated_as_required branch July 2, 2024 09:50
@vidarl
Copy link
Member Author

vidarl commented Jul 2, 2024

New PR : #2122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

7 participants