From 0e8a94ac42c5f4345658d1581f9b2c7afa705a3a Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 12 Apr 2018 15:08:29 -0700 Subject: Adjust field size to keep compatibility with MySQL 5.6 --- app/Template/category/edit.php | 2 +- app/Template/column/create.php | 2 +- app/Template/column/edit.php | 2 +- app/Template/group_creation/show.php | 2 +- app/Template/group_modification/show.php | 2 +- app/Template/project_tag/create.php | 2 +- app/Template/project_tag/edit.php | 2 +- app/Template/swimlane/create.php | 2 +- app/Template/swimlane/edit.php | 2 +- app/Template/tag/create.php | 2 +- app/Template/tag/edit.php | 2 +- app/Template/user_creation/show.php | 2 +- app/Template/user_invite/signup.php | 2 +- app/Template/user_modification/show.php | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) (limited to 'app/Template') diff --git a/app/Template/category/edit.php b/app/Template/category/edit.php index 08231606..cd8ee7ba 100644 --- a/app/Template/category/edit.php +++ b/app/Template/category/edit.php @@ -6,7 +6,7 @@ form->csrf() ?> form->label(t('Category Name'), 'name') ?> - form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="255"', 'tabindex="1"')) ?> + form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="191"', 'tabindex="1"')) ?> form->label(t('Description'), 'description') ?> form->textEditor('description', $values, $errors, array('tabindex' => 2)) ?> diff --git a/app/Template/column/create.php b/app/Template/column/create.php index 2ea88eea..034e948c 100644 --- a/app/Template/column/create.php +++ b/app/Template/column/create.php @@ -5,7 +5,7 @@ form->csrf() ?> form->label(t('Title'), 'title') ?> - form->text('title', $values, $errors, array('autofocus', 'required', 'maxlength="255"', 'tabindex="1"')) ?> + form->text('title', $values, $errors, array('autofocus', 'required', 'maxlength="191"', 'tabindex="1"')) ?> form->label(t('Task limit'), 'task_limit') ?> form->number('task_limit', $values, $errors, array('tabindex="2"')) ?> diff --git a/app/Template/column/edit.php b/app/Template/column/edit.php index 2025405f..def0f299 100644 --- a/app/Template/column/edit.php +++ b/app/Template/column/edit.php @@ -6,7 +6,7 @@ form->csrf() ?> form->label(t('Title'), 'title') ?> - form->text('title', $values, $errors, array('autofocus', 'required', 'maxlength="255"')) ?> + form->text('title', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?> form->label(t('Task limit'), 'task_limit') ?> form->number('task_limit', $values, $errors) ?> diff --git a/app/Template/group_creation/show.php b/app/Template/group_creation/show.php index 0b26105b..7cec0755 100644 --- a/app/Template/group_creation/show.php +++ b/app/Template/group_creation/show.php @@ -5,7 +5,7 @@ form->csrf() ?> form->label(t('Name'), 'name') ?> - form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="255"')) ?> + form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?> modal->submitButtons() ?> diff --git a/app/Template/group_modification/show.php b/app/Template/group_modification/show.php index c314a412..aa647775 100644 --- a/app/Template/group_modification/show.php +++ b/app/Template/group_modification/show.php @@ -8,7 +8,7 @@ form->hidden('external_id', $values) ?> form->label(t('Name'), 'name') ?> - form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="255"')) ?> + form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?> modal->submitButtons() ?> diff --git a/app/Template/project_tag/create.php b/app/Template/project_tag/create.php index 6765e8fc..d665aa76 100644 --- a/app/Template/project_tag/create.php +++ b/app/Template/project_tag/create.php @@ -5,7 +5,7 @@ form->csrf() ?> form->label(t('Name'), 'name') ?> - form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="255"')) ?> + form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?> modal->submitButtons() ?> diff --git a/app/Template/project_tag/edit.php b/app/Template/project_tag/edit.php index 29290c0c..39b08326 100644 --- a/app/Template/project_tag/edit.php +++ b/app/Template/project_tag/edit.php @@ -5,7 +5,7 @@ form->csrf() ?> form->label(t('Name'), 'name') ?> - form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="255"')) ?> + form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?> modal->submitButtons() ?> diff --git a/app/Template/swimlane/create.php b/app/Template/swimlane/create.php index 02825547..b769c6ce 100644 --- a/app/Template/swimlane/create.php +++ b/app/Template/swimlane/create.php @@ -5,7 +5,7 @@ form->csrf() ?> form->label(t('Name'), 'name') ?> - form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="255"', 'tabindex="1"')) ?> + form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="191"', 'tabindex="1"')) ?> form->label(t('Description'), 'description') ?> form->textEditor('description', $values, $errors, array('tabindex' => 2)) ?> diff --git a/app/Template/swimlane/edit.php b/app/Template/swimlane/edit.php index 205dc95d..f15a6dfb 100644 --- a/app/Template/swimlane/edit.php +++ b/app/Template/swimlane/edit.php @@ -6,7 +6,7 @@ form->csrf() ?> form->label(t('Name'), 'name') ?> - form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="255"', 'tabindex="1"')) ?> + form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="191"', 'tabindex="1"')) ?> form->label(t('Description'), 'description') ?> form->textEditor('description', $values, $errors, array('tabindex' => 2)) ?> diff --git a/app/Template/tag/create.php b/app/Template/tag/create.php index 752a63e5..c376eb28 100644 --- a/app/Template/tag/create.php +++ b/app/Template/tag/create.php @@ -6,7 +6,7 @@ form->hidden('project_id', $values) ?> form->label(t('Name'), 'name') ?> - form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="255"')) ?> + form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?> modal->submitButtons() ?> diff --git a/app/Template/tag/edit.php b/app/Template/tag/edit.php index adef3568..a0e54843 100644 --- a/app/Template/tag/edit.php +++ b/app/Template/tag/edit.php @@ -7,7 +7,7 @@ form->hidden('project_id', $values) ?> form->label(t('Name'), 'name') ?> - form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="255"')) ?> + form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?> modal->submitButtons() ?> diff --git a/app/Template/user_creation/show.php b/app/Template/user_creation/show.php index 90301dbd..d1bde192 100644 --- a/app/Template/user_creation/show.php +++ b/app/Template/user_creation/show.php @@ -10,7 +10,7 @@ form->label(t('Username'), 'username') ?> - form->text('username', $values, $errors, array('autofocus', 'required', 'maxlength="255"')) ?> + form->text('username', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?> form->label(t('Name'), 'name') ?> form->text('name', $values, $errors) ?> diff --git a/app/Template/user_invite/signup.php b/app/Template/user_invite/signup.php index c5c50217..88dee216 100644 --- a/app/Template/user_invite/signup.php +++ b/app/Template/user_invite/signup.php @@ -9,7 +9,7 @@ form->label(t('Username'), 'username') ?> - form->text('username', $values, $errors, array('autofocus', 'required', 'maxlength="255"')) ?> + form->text('username', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?> form->label(t('Name'), 'name') ?> form->text('name', $values, $errors) ?> diff --git a/app/Template/user_modification/show.php b/app/Template/user_modification/show.php index 2bca6675..a21b9d33 100644 --- a/app/Template/user_modification/show.php +++ b/app/Template/user_modification/show.php @@ -8,7 +8,7 @@
form->label(t('Username'), 'username') ?> - form->text('username', $values, $errors, array('autofocus', 'required', isset($values['is_ldap_user']) && $values['is_ldap_user'] == 1 && !$this->user->isAdmin() ? 'readonly' : '', 'maxlength="255"')) ?> + form->text('username', $values, $errors, array('autofocus', 'required', isset($values['is_ldap_user']) && $values['is_ldap_user'] == 1 && !$this->user->isAdmin() ? 'readonly' : '', 'maxlength="191"')) ?> form->label(t('Name'), 'name') ?> form->text('name', $values, $errors, array($this->user->hasAccess('UserModificationController', 'show/edit_name') ? '' : 'readonly')) ?> -- cgit v1.2.3