Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
fix: VOL-5507 remove incorrect calls to Laminas number element that w…
Browse files Browse the repository at this point in the history
…as breaking validation (#164)
  • Loading branch information
ilindsay authored Jun 5, 2024
1 parent 84da58a commit 137e07c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@ class InPossessionInfo
* @Form\Required(true)
* @Form\AllowEmpty(true)
* @Form\ContinueIfEmpty(true)
* @Form\Type("Number")
* @Form\Options({
* "label":"licence.surrender.current_discs.destroy.number.label",
* })
* @Form\Attributes({
* "class":"govuk-input govuk-!-width-one-third",
* "step": "any",
* "min": 0
* })
* @Form\Validator("ValidateIf",
* options={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@ class LostInfo
* @Form\Required(true)
* @Form\AllowEmpty(true)
* @Form\ContinueIfEmpty(true)
* @Form\Type("Number")
* @Form\Options({
* "label": "licence.surrender.current_discs.lost.label",
* })
* @Form\Attributes({
* "class": "govuk-input govuk-!-width-one-third",
* "step": "any",
* "min": 0
* })
* @Form\Validator("ValidateIf",
* options={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@ class StolenInfo
/**
* @Form\Name("number")
* @Form\Required(true)
* @Form\AllowEmpty(true)
* @Form\ContinueIfEmpty(true)
* @Form\Type("Number")
* @Form\Options({
* "label":"licence.surrender.current_discs.stolen.number.label",
* })
* @Form\Attributes({
* "class":"govuk-input govuk-!-width-one-third",
* "step": "any",
* "min": 0
* })
* @Form\Validator("ValidateIf",
* options={
Expand All @@ -27,6 +23,12 @@ class StolenInfo
* "inject_post_data": "stolenSection->stolen",
* "validators": {
* {
* "name": "NotEmpty",
* "options": {
* "messages": {"isEmpty" : "Value is required and can't be empty"},
* }
* },
* {
* "name": "Digits",
* "options": {
* "break_chain_on_failure": true,
Expand Down

0 comments on commit 137e07c

Please sign in to comment.