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

fix: VOL-5507 remove incorrect calls to Laminas number element that was breaking validation #164

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading