From d4ea257af2f6f34e42b3edefeec843aeba9014c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Th=C3=A9o=20BOYER?= <t.boyer@si17.lan>
Date: Thu, 13 Jun 2024 10:32:36 +0200
Subject: [PATCH] [Traitement & Logiciel et support] Fix limitation textarea
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Suite au retour dans le ticket (https://gitlab.adullact.net/soluris/madis/-/issues/865#note_138346) :
- Suppression de la limitation pour les textarea des logiciels ou supports
- Modification de la limitation d'affichage du message d'erreur des textarea des mesures et sécurité des traitements
---
 config/domain/registry/validation/complex_choice.yaml | 2 +-
 src/Domain/Registry/Form/Type/ToolType.php            | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/config/domain/registry/validation/complex_choice.yaml b/config/domain/registry/validation/complex_choice.yaml
index 3a090896f..ab2e46b4e 100644
--- a/config/domain/registry/validation/complex_choice.yaml
+++ b/config/domain/registry/validation/complex_choice.yaml
@@ -2,5 +2,5 @@ App\Domain\Registry\Model\Embeddable\ComplexChoice:
     properties:
         comment:
             - Length:
-                max: 255
+                max: 500
                 groups: ['default']
diff --git a/src/Domain/Registry/Form/Type/ToolType.php b/src/Domain/Registry/Form/Type/ToolType.php
index 64fcfbe49..7b467cf3a 100644
--- a/src/Domain/Registry/Form/Type/ToolType.php
+++ b/src/Domain/Registry/Form/Type/ToolType.php
@@ -91,7 +91,7 @@ class ToolType extends AbstractType
                 'label'    => 'registry.tool.label.description',
                 'required' => false,
                 'attr'     => [
-                    'maxlength' => 255,
+                    'rows' => 2,
                 ],
                 'purify_html' => true,
             ])
@@ -99,7 +99,7 @@ class ToolType extends AbstractType
                 'label'    => 'registry.tool.label.other_info',
                 'required' => false,
                 'attr'     => [
-                    'maxlength' => 255,
+                    'rows' => 2,
                 ],
                 'purify_html' => true,
             ])
-- 
GitLab