diff options
author | Frédéric Guillot <fred@kanboard.net> | 2018-04-11 12:03:38 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2018-04-11 13:48:13 -0700 |
commit | dd92564d221f35fc4fc7bb449c6d24cc4743247b (patch) | |
tree | fb1e46d904f0fbf1f33f1449ca24354003f5e809 /app/Validator | |
parent | 8c5b9925c49bc1a989cdc5e146ce79543fdf7f0a (diff) |
Increase text fields length in several tables
Diffstat (limited to 'app/Validator')
-rw-r--r-- | app/Validator/AuthValidator.php | 2 | ||||
-rw-r--r-- | app/Validator/CategoryValidator.php | 2 | ||||
-rw-r--r-- | app/Validator/ColumnValidator.php | 2 | ||||
-rw-r--r-- | app/Validator/CommentValidator.php | 2 | ||||
-rw-r--r-- | app/Validator/CustomFilterValidator.php | 4 | ||||
-rw-r--r-- | app/Validator/ExternalLinkValidator.php | 4 | ||||
-rw-r--r-- | app/Validator/GroupValidator.php | 2 | ||||
-rw-r--r-- | app/Validator/PasswordResetValidator.php | 2 | ||||
-rw-r--r-- | app/Validator/ProjectValidator.php | 2 | ||||
-rw-r--r-- | app/Validator/SubtaskValidator.php | 2 | ||||
-rw-r--r-- | app/Validator/SwimlaneValidator.php | 2 | ||||
-rw-r--r-- | app/Validator/TaskValidator.php | 4 | ||||
-rw-r--r-- | app/Validator/UserValidator.php | 2 |
13 files changed, 16 insertions, 16 deletions
diff --git a/app/Validator/AuthValidator.php b/app/Validator/AuthValidator.php index 9abe69f0..daa913c0 100644 --- a/app/Validator/AuthValidator.php +++ b/app/Validator/AuthValidator.php @@ -37,7 +37,7 @@ class AuthValidator extends BaseValidator { $v = new Validator($values, array( new Validators\Required('username', t('The username is required')), - new Validators\MaxLength('username', t('The maximum length is %d characters', 50), 50), + new Validators\MaxLength('username', t('The maximum length is %d characters', 255), 255), new Validators\Required('password', t('The password is required')), )); diff --git a/app/Validator/CategoryValidator.php b/app/Validator/CategoryValidator.php index fc42d2e5..f5c7e0f1 100644 --- a/app/Validator/CategoryValidator.php +++ b/app/Validator/CategoryValidator.php @@ -68,7 +68,7 @@ class CategoryValidator extends BaseValidator return array( new Validators\Integer('id', t('The id must be an integer')), new Validators\Integer('project_id', t('The project id must be an integer')), - new Validators\MaxLength('name', t('The maximum length is %d characters', 50), 50) + new Validators\MaxLength('name', t('The maximum length is %d characters', 255), 255) ); } } diff --git a/app/Validator/ColumnValidator.php b/app/Validator/ColumnValidator.php index 25aa45d0..bc6af7dd 100644 --- a/app/Validator/ColumnValidator.php +++ b/app/Validator/ColumnValidator.php @@ -69,7 +69,7 @@ class ColumnValidator extends BaseValidator new Validators\Integer('task_limit', t('This value must be an integer')), new Validators\GreaterThan('task_limit', t('This value must be greater than %d', -1), -1), new Validators\Required('title', t('The title is required')), - new Validators\MaxLength('title', t('The maximum length is %d characters', 50), 50), + new Validators\MaxLength('title', t('The maximum length is %d characters', 255), 255), ); } } diff --git a/app/Validator/CommentValidator.php b/app/Validator/CommentValidator.php index 9c883c00..c5149bad 100644 --- a/app/Validator/CommentValidator.php +++ b/app/Validator/CommentValidator.php @@ -91,7 +91,7 @@ class CommentValidator extends BaseValidator new Validators\Integer('id', t('This value must be an integer')), new Validators\Integer('task_id', t('This value must be an integer')), new Validators\Integer('user_id', t('This value must be an integer')), - new Validators\MaxLength('reference', t('The maximum length is %d characters', 50), 50), + new Validators\MaxLength('reference', t('The maximum length is %d characters', 255), 255), new Validators\Required('comment', t('Comment is required')) ); } diff --git a/app/Validator/CustomFilterValidator.php b/app/Validator/CustomFilterValidator.php index 1ab9303d..eb661970 100644 --- a/app/Validator/CustomFilterValidator.php +++ b/app/Validator/CustomFilterValidator.php @@ -28,8 +28,8 @@ class CustomFilterValidator extends BaseValidator new Validators\Required('filter', t('Field required')), new Validators\Integer('user_id', t('This value must be an integer')), new Validators\Integer('project_id', t('This value must be an integer')), - new Validators\MaxLength('name', t('The maximum length is %d characters', 100), 100), - new Validators\MaxLength('filter', t('The maximum length is %d characters', 100), 100) + new Validators\MaxLength('name', t('The maximum length is %d characters', 65535), 65535), + new Validators\MaxLength('filter', t('The maximum length is %d characters', 65535), 65535) ); } diff --git a/app/Validator/ExternalLinkValidator.php b/app/Validator/ExternalLinkValidator.php index 9c017708..638e9437 100644 --- a/app/Validator/ExternalLinkValidator.php +++ b/app/Validator/ExternalLinkValidator.php @@ -61,9 +61,9 @@ class ExternalLinkValidator extends BaseValidator { return array( new Validators\Required('url', t('Field required')), - new Validators\MaxLength('url', t('The maximum length is %d characters', 255), 255), + new Validators\MaxLength('url', t('The maximum length is %d characters', 65535), 65535), new Validators\Required('title', t('Field required')), - new Validators\MaxLength('title', t('The maximum length is %d characters', 255), 255), + new Validators\MaxLength('title', t('The maximum length is %d characters', 65535), 65535), new Validators\Required('link_type', t('Field required')), new Validators\MaxLength('link_type', t('The maximum length is %d characters', 100), 100), new Validators\Required('dependency', t('Field required')), diff --git a/app/Validator/GroupValidator.php b/app/Validator/GroupValidator.php index 8b21c697..66a20eb9 100644 --- a/app/Validator/GroupValidator.php +++ b/app/Validator/GroupValidator.php @@ -62,7 +62,7 @@ class GroupValidator extends BaseValidator { return array( new Validators\Required('name', t('The name is required')), - new Validators\MaxLength('name', t('The maximum length is %d characters', 100), 100), + new Validators\MaxLength('name', t('The maximum length is %d characters', 255), 255), new Validators\Unique('name', t('The name must be unique'), $this->db->getConnection(), GroupModel::TABLE, 'id'), new Validators\MaxLength('external_id', t('The maximum length is %d characters', 255), 255), new Validators\Integer('id', t('This value must be an integer')), diff --git a/app/Validator/PasswordResetValidator.php b/app/Validator/PasswordResetValidator.php index 0a2a3cd6..3c19affe 100644 --- a/app/Validator/PasswordResetValidator.php +++ b/app/Validator/PasswordResetValidator.php @@ -55,7 +55,7 @@ class PasswordResetValidator extends BaseValidator $v = new Validator($values, array( new Validators\Required('captcha', t('This value is required')), new Validators\Required('username', t('The username is required')), - new Validators\MaxLength('username', t('The maximum length is %d characters', 50), 50), + new Validators\MaxLength('username', t('The maximum length is %d characters', 255), 255), )); return array( diff --git a/app/Validator/ProjectValidator.php b/app/Validator/ProjectValidator.php index 2fc3c28e..d23f1232 100644 --- a/app/Validator/ProjectValidator.php +++ b/app/Validator/ProjectValidator.php @@ -28,7 +28,7 @@ class ProjectValidator extends BaseValidator new Validators\Integer('priority_start', t('This value must be an integer')), new Validators\Integer('priority_end', t('This value must be an integer')), new Validators\Integer('is_active', t('This value must be an integer')), - new Validators\MaxLength('name', t('The maximum length is %d characters', 50), 50), + new Validators\MaxLength('name', t('The maximum length is %d characters', 65535), 65535), new Validators\MaxLength('identifier', t('The maximum length is %d characters', 50), 50), new Validators\MaxLength('start_date', t('The maximum length is %d characters', 10), 10), new Validators\MaxLength('end_date', t('The maximum length is %d characters', 10), 10), diff --git a/app/Validator/SubtaskValidator.php b/app/Validator/SubtaskValidator.php index b80de41d..d3e814d8 100644 --- a/app/Validator/SubtaskValidator.php +++ b/app/Validator/SubtaskValidator.php @@ -91,7 +91,7 @@ class SubtaskValidator extends BaseValidator return array( new Validators\Integer('id', t('The subtask id must be an integer')), new Validators\Integer('task_id', t('The task id must be an integer')), - new Validators\MaxLength('title', t('The maximum length is %d characters', 255), 255), + new Validators\MaxLength('title', t('The maximum length is %d characters', 65535), 65535), new Validators\Integer('user_id', t('The user id must be an integer')), new Validators\Integer('status', t('The status must be an integer')), new Validators\Numeric('time_estimated', t('The time must be a numeric value')), diff --git a/app/Validator/SwimlaneValidator.php b/app/Validator/SwimlaneValidator.php index b0302d73..fb3d5f11 100644 --- a/app/Validator/SwimlaneValidator.php +++ b/app/Validator/SwimlaneValidator.php @@ -68,7 +68,7 @@ class SwimlaneValidator extends BaseValidator return array( new Validators\Integer('id', t('The id must be an integer')), new Validators\Integer('project_id', t('The project id must be an integer')), - new Validators\MaxLength('name', t('The maximum length is %d characters', 50), 50) + new Validators\MaxLength('name', t('The maximum length is %d characters', 255), 255) ); } } diff --git a/app/Validator/TaskValidator.php b/app/Validator/TaskValidator.php index 2bf148f4..7f905b2d 100644 --- a/app/Validator/TaskValidator.php +++ b/app/Validator/TaskValidator.php @@ -40,8 +40,8 @@ class TaskValidator extends BaseValidator new Validators\Integer('recurrence_trigger', t('This value must be an integer')), new Validators\Integer('recurrence_status', t('This value must be an integer')), new Validators\Integer('priority', t('This value must be an integer')), - new Validators\MaxLength('title', t('The maximum length is %d characters', 200), 200), - new Validators\MaxLength('reference', t('The maximum length is %d characters', 50), 50), + new Validators\MaxLength('title', t('The maximum length is %d characters', 65535), 65535), + new Validators\MaxLength('reference', t('The maximum length is %d characters', 255), 255), new Validators\Date('date_due', t('Invalid date'), $this->dateParser->getParserFormats()), new Validators\Date('date_started', t('Invalid date'), $this->dateParser->getParserFormats()), new Validators\Numeric('time_spent', t('This value must be numeric')), diff --git a/app/Validator/UserValidator.php b/app/Validator/UserValidator.php index 041390a3..d7c5a94d 100644 --- a/app/Validator/UserValidator.php +++ b/app/Validator/UserValidator.php @@ -24,7 +24,7 @@ class UserValidator extends BaseValidator { return array( new Validators\MaxLength('role', t('The maximum length is %d characters', 25), 25), - new Validators\MaxLength('username', t('The maximum length is %d characters', 50), 50), + new Validators\MaxLength('username', t('The maximum length is %d characters', 255), 255), new Validators\Unique('username', t('This username is already taken'), $this->db->getConnection(), UserModel::TABLE, 'id'), new Validators\Email('email', t('Email address invalid')), new Validators\Integer('is_ldap_user', t('This value must be an integer')), |