From 8089d69fd4dcab624b39e5c05b35de37c0834f62 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Eduardo=20Sanz=20Garc=C3=ADa?= <esanz-garcia@gitlab.com>
Date: Tue, 15 Mar 2022 11:06:55 +0000
Subject: [PATCH] Remove `maxlength` limit from the project description
 textarea

In the `General Settings` page one can add an optional project
description. Previously, this textarea field was set to a maximum of
250 characters. In this commit we have remove that limit.

There is an actual limit of 2000 imposed by the backend. If one tries to
save a project description longer than 2000 characters a warning will
appear after clicking `Save changes`.

Changelog: other
---
 app/views/projects/settings/_general.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/projects/settings/_general.html.haml b/app/views/projects/settings/_general.html.haml
index 960b1d6761065..3a62c6f41cc63 100644
--- a/app/views/projects/settings/_general.html.haml
+++ b/app/views/projects/settings/_general.html.haml
@@ -23,7 +23,7 @@
     .row
       .form-group.col-md-9
         = f.label :description, _('Project description (optional)'), class: 'label-bold'
-        = f.text_area :description, class: 'form-control gl-form-input', rows: 3, maxlength: 250
+        = f.text_area :description, class: 'form-control gl-form-input', rows: 3
 
   .row= render_if_exists 'projects/classification_policy_settings', f: f
 
-- 
GitLab