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

Commit

Permalink
fix: Messaging error/validation messages (#134)
Browse files Browse the repository at this point in the history
* feat: Use custom messages for messaging when defined

* chore: Use annotations to configure validation messages

* Add messages with priority

* Add length and label

* fix: Bad annotation

* Revert "fix: Bad annotation"

This reverts commit a7287c0.

* fix: Bad annotation

---------

Co-authored-by: Saul Wilcox <saul.wilcox@dvsa.gov.uk>
  • Loading branch information
hobbyhacker0 and hobbyhacker0 authored Mar 28, 2024
1 parent 235e61f commit 75fe5c4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions module/Olcs/src/Form/Model/Fieldset/Conversation.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,14 @@ class Conversation
public ?DynamicSelect $messageSubject = null;

/**
* @Form\Attributes({"class": "extra-long", "id": ""})
* @Form\Options({"label": "Message"})
* @Form\Attributes({
* "class": "extra-long",
* "id": "",
* "maxlength": 1000
* })
* @Form\Options({
* "label": "You can enter up to 1000 characters",
* })
* @Form\Type(Textarea::class)
* @Form\Filter(StringTrim::class)
* @Form\Validator("Laminas\Validator\NotEmpty",
Expand Down

0 comments on commit 75fe5c4

Please sign in to comment.