Increase text fields length in several tables

This commit is contained in:
Frédéric Guillot 2018-04-11 12:03:38 -07:00
parent 8c5b9925c4
commit dd92564d22
38 changed files with 158 additions and 103 deletions

View File

@ -105,7 +105,7 @@ class SubtaskHelper extends Base
public function renderTitleField(array $values, array $errors = array(), array $attributes = array()) public function renderTitleField(array $values, array $errors = array(), array $attributes = array())
{ {
$attributes = array_merge(array('tabindex="1"', 'required', 'maxlength="255"'), $attributes); $attributes = array_merge(array('tabindex="1"', 'required'), $attributes);
$html = $this->helper->form->label(t('Title'), 'title'); $html = $this->helper->form->label(t('Title'), 'title');
$html .= $this->helper->form->text('title', $values, $errors, $attributes); $html .= $this->helper->form->text('title', $values, $errors, $attributes);

View File

@ -49,7 +49,6 @@ class TaskHelper extends Base
array( array(
'autofocus', 'autofocus',
'required', 'required',
'maxlength="200"',
'tabindex="1"', 'tabindex="1"',
'placeholder="'.t('Title').'"' 'placeholder="'.t('Title').'"'
) )

View File

@ -140,8 +140,8 @@ class TaskImport extends Base
new Validators\Integer('project_id', t('This value must be an integer')), new Validators\Integer('project_id', t('This value must be an integer')),
new Validators\Required('project_id', t('The project is required')), new Validators\Required('project_id', t('The project is required')),
new Validators\Required('title', t('The title is required')), new Validators\Required('title', t('The title is required')),
new Validators\MaxLength('title', t('The maximum length is %d characters', 200), 200), new Validators\MaxLength('title', t('The maximum length is %d characters', 65535), 65535),
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),
)); ));
return $v->execute(); return $v->execute();

View File

@ -108,7 +108,7 @@ class UserImport extends Base
public function validateCreation(array $values) public function validateCreation(array $values)
{ {
$v = new Validator($values, array( $v = new Validator($values, array(
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('The username must be unique'), $this->db->getConnection(), UserModel::TABLE, 'id'), new Validators\Unique('username', t('The username must be unique'), $this->db->getConnection(), UserModel::TABLE, 'id'),
new Validators\MinLength('password', t('The minimum length is %d characters', 6), 6), new Validators\MinLength('password', t('The minimum length is %d characters', 6), 6),
new Validators\Email('email', t('Email address invalid')), new Validators\Email('email', t('Email address invalid')),

View File

@ -8,7 +8,35 @@ use PDO;
use Kanboard\Core\Security\Token; use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role; use Kanboard\Core\Security\Role;
const VERSION = 128; const VERSION = 129;
function version_129(PDO $pdo)
{
$pdo->exec('ALTER TABLE `projects` MODIFY `name` TEXT NOT NULL');
$pdo->exec('ALTER TABLE `projects` MODIFY `email` TEXT');
$pdo->exec('ALTER TABLE `action_has_params` MODIFY `name` TEXT NOT NULL');
$pdo->exec('ALTER TABLE `action_has_params` MODIFY `value` TEXT NOT NULL');
$pdo->exec('ALTER TABLE `actions` MODIFY `event_name` TEXT NOT NULL');
$pdo->exec('ALTER TABLE `actions` MODIFY `action_name` TEXT NOT NULL');
$pdo->exec("ALTER TABLE `comments` MODIFY `reference` VARCHAR(255) DEFAULT ''");
$pdo->exec("ALTER TABLE `custom_filters` MODIFY `filter` TEXT NOT NULL");
$pdo->exec("ALTER TABLE `custom_filters` MODIFY `name` TEXT NOT NULL");
$pdo->exec("ALTER TABLE `groups` MODIFY `name` VARCHAR(255) NOT NULL");
$pdo->exec("ALTER TABLE `project_activities` MODIFY `event_name` TEXT NOT NULL");
$pdo->exec("ALTER TABLE `project_has_files` MODIFY `name` TEXT NOT NULL");
$pdo->exec("ALTER TABLE `project_has_files` MODIFY `path` TEXT NOT NULL");
$pdo->exec("ALTER TABLE `subtasks` MODIFY `title` TEXT NOT NULL");
$pdo->exec("ALTER TABLE `swimlanes` MODIFY `name` VARCHAR(255) NOT NULL");
$pdo->exec("ALTER TABLE `task_has_external_links` MODIFY `title` TEXT NOT NULL");
$pdo->exec("ALTER TABLE `task_has_external_links` MODIFY `url` TEXT NOT NULL");
$pdo->exec("ALTER TABLE `task_has_files` MODIFY `name` TEXT NOT NULL");
$pdo->exec("ALTER TABLE `task_has_files` MODIFY `path` TEXT NOT NULL");
$pdo->exec("ALTER TABLE `tasks` MODIFY `title` TEXT NOT NULL");
$pdo->exec("ALTER TABLE `tasks` MODIFY `reference` VARCHAR(255) DEFAULT ''");
$pdo->exec("ALTER TABLE `user_has_unread_notifications` MODIFY `event_name` TEXT NOT NULL");
$pdo->exec("ALTER TABLE `users` MODIFY `username` VARCHAR(255) NOT NULL");
$pdo->exec("ALTER TABLE `users` MODIFY `filter` TEXT");
}
function version_128(PDO $pdo) function version_128(PDO $pdo)
{ {

View File

@ -8,7 +8,35 @@ use PDO;
use Kanboard\Core\Security\Token; use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role; use Kanboard\Core\Security\Role;
const VERSION = 107; const VERSION = 108;
function version_108(PDO $pdo)
{
$pdo->exec('ALTER TABLE "projects" ALTER COLUMN "name" TYPE TEXT');
$pdo->exec('ALTER TABLE "projects" ALTER COLUMN "email" TYPE TEXT');
$pdo->exec('ALTER TABLE "action_has_params" ALTER COLUMN "name" TYPE TEXT');
$pdo->exec('ALTER TABLE "action_has_params" ALTER COLUMN "value" TYPE TEXT');
$pdo->exec('ALTER TABLE "actions" ALTER COLUMN "event_name" TYPE TEXT');
$pdo->exec('ALTER TABLE "actions" ALTER COLUMN "action_name" TYPE TEXT');
$pdo->exec('ALTER TABLE "comments" ALTER COLUMN "reference" TYPE TEXT');
$pdo->exec('ALTER TABLE "custom_filters" ALTER COLUMN "filter" TYPE TEXT');
$pdo->exec('ALTER TABLE "custom_filters" ALTER COLUMN "name" TYPE TEXT');
$pdo->exec('ALTER TABLE "groups" ALTER COLUMN "name" TYPE TEXT');
$pdo->exec('ALTER TABLE "project_activities" ALTER COLUMN "event_name" TYPE TEXT');
$pdo->exec('ALTER TABLE "project_has_files" ALTER COLUMN "name" TYPE TEXT');
$pdo->exec('ALTER TABLE "project_has_files" ALTER COLUMN "path" TYPE TEXT');
$pdo->exec('ALTER TABLE "subtasks" ALTER COLUMN "title" TYPE TEXT');
$pdo->exec('ALTER TABLE "swimlanes" ALTER COLUMN "name" TYPE TEXT');
$pdo->exec('ALTER TABLE "task_has_external_links" ALTER COLUMN "title" TYPE TEXT');
$pdo->exec('ALTER TABLE "task_has_external_links" ALTER COLUMN "url" TYPE TEXT');
$pdo->exec('ALTER TABLE "task_has_files" ALTER COLUMN "name" TYPE TEXT');
$pdo->exec('ALTER TABLE "task_has_files" ALTER COLUMN "path" TYPE TEXT');
$pdo->exec('ALTER TABLE "tasks" ALTER COLUMN "title" TYPE TEXT');
$pdo->exec('ALTER TABLE "tasks" ALTER COLUMN "reference" TYPE TEXT');
$pdo->exec('ALTER TABLE "user_has_unread_notifications" ALTER COLUMN "event_name" TYPE TEXT');
$pdo->exec('ALTER TABLE "users" ALTER COLUMN "username" TYPE TEXT');
$pdo->exec('ALTER TABLE "users" ALTER COLUMN "filter" TYPE TEXT');
}
function version_107(PDO $pdo) function version_107(PDO $pdo)
{ {

View File

@ -15,8 +15,8 @@ DROP TABLE IF EXISTS `action_has_params`;
CREATE TABLE `action_has_params` ( CREATE TABLE `action_has_params` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`action_id` int(11) NOT NULL, `action_id` int(11) NOT NULL,
`name` varchar(50) NOT NULL, `name` text NOT NULL,
`value` varchar(50) NOT NULL, `value` text NOT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `action_id` (`action_id`), KEY `action_id` (`action_id`),
CONSTRAINT `action_has_params_ibfk_1` FOREIGN KEY (`action_id`) REFERENCES `actions` (`id`) ON DELETE CASCADE CONSTRAINT `action_has_params_ibfk_1` FOREIGN KEY (`action_id`) REFERENCES `actions` (`id`) ON DELETE CASCADE
@ -28,8 +28,8 @@ DROP TABLE IF EXISTS `actions`;
CREATE TABLE `actions` ( CREATE TABLE `actions` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL, `project_id` int(11) NOT NULL,
`event_name` varchar(50) NOT NULL, `event_name` text NOT NULL,
`action_name` varchar(255) DEFAULT NULL, `action_name` text NOT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `project_id` (`project_id`), KEY `project_id` (`project_id`),
CONSTRAINT `actions_ibfk_1` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE CONSTRAINT `actions_ibfk_1` FOREIGN KEY (`project_id`) REFERENCES `projects` (`id`) ON DELETE CASCADE
@ -100,7 +100,7 @@ CREATE TABLE `comments` (
`user_id` int(11) DEFAULT '0', `user_id` int(11) DEFAULT '0',
`date_creation` bigint(20) DEFAULT NULL, `date_creation` bigint(20) DEFAULT NULL,
`comment` text, `comment` text,
`reference` varchar(50) DEFAULT '', `reference` varchar(255) DEFAULT '',
`date_modification` bigint(20) DEFAULT NULL, `date_modification` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `user_id` (`user_id`), KEY `user_id` (`user_id`),
@ -123,10 +123,10 @@ DROP TABLE IF EXISTS `custom_filters`;
/*!40101 SET character_set_client = utf8 */; /*!40101 SET character_set_client = utf8 */;
CREATE TABLE `custom_filters` ( CREATE TABLE `custom_filters` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`filter` varchar(100) NOT NULL, `filter` text NOT NULL,
`project_id` int(11) NOT NULL, `project_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL, `user_id` int(11) NOT NULL,
`name` varchar(100) NOT NULL, `name` text NOT NULL,
`is_shared` tinyint(1) DEFAULT '0', `is_shared` tinyint(1) DEFAULT '0',
`append` tinyint(1) DEFAULT '0', `append` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
@ -154,7 +154,7 @@ DROP TABLE IF EXISTS `groups`;
CREATE TABLE `groups` ( CREATE TABLE `groups` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`external_id` varchar(255) DEFAULT '', `external_id` varchar(255) DEFAULT '',
`name` varchar(100) NOT NULL, `name` varchar(255) NOT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`) UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@ -239,7 +239,7 @@ DROP TABLE IF EXISTS `project_activities`;
CREATE TABLE `project_activities` ( CREATE TABLE `project_activities` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`date_creation` bigint(20) DEFAULT NULL, `date_creation` bigint(20) DEFAULT NULL,
`event_name` varchar(50) NOT NULL, `event_name` text NOT NULL,
`creator_id` int(11) DEFAULT NULL, `creator_id` int(11) DEFAULT NULL,
`project_id` int(11) DEFAULT NULL, `project_id` int(11) DEFAULT NULL,
`task_id` int(11) DEFAULT NULL, `task_id` int(11) DEFAULT NULL,
@ -306,8 +306,8 @@ DROP TABLE IF EXISTS `project_has_files`;
CREATE TABLE `project_has_files` ( CREATE TABLE `project_has_files` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL, `project_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL, `name` text NOT NULL,
`path` varchar(255) NOT NULL, `path` text NOT NULL,
`is_image` tinyint(1) DEFAULT '0', `is_image` tinyint(1) DEFAULT '0',
`size` int(11) NOT NULL DEFAULT '0', `size` int(11) NOT NULL DEFAULT '0',
`user_id` int(11) NOT NULL DEFAULT '0', `user_id` int(11) NOT NULL DEFAULT '0',
@ -400,7 +400,7 @@ DROP TABLE IF EXISTS `projects`;
/*!40101 SET character_set_client = utf8 */; /*!40101 SET character_set_client = utf8 */;
CREATE TABLE `projects` ( CREATE TABLE `projects` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL, `name` text NOT NULL,
`is_active` tinyint(4) DEFAULT '1', `is_active` tinyint(4) DEFAULT '1',
`token` varchar(255) DEFAULT NULL, `token` varchar(255) DEFAULT NULL,
`last_modified` bigint(20) DEFAULT NULL, `last_modified` bigint(20) DEFAULT NULL,
@ -414,7 +414,7 @@ CREATE TABLE `projects` (
`priority_default` int(11) DEFAULT '0', `priority_default` int(11) DEFAULT '0',
`priority_start` int(11) DEFAULT '0', `priority_start` int(11) DEFAULT '0',
`priority_end` int(11) DEFAULT '3', `priority_end` int(11) DEFAULT '3',
`email` varchar(255) DEFAULT NULL, `email` text,
`predefined_email_subjects` text, `predefined_email_subjects` text,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@ -486,7 +486,7 @@ DROP TABLE IF EXISTS `subtasks`;
/*!40101 SET character_set_client = utf8 */; /*!40101 SET character_set_client = utf8 */;
CREATE TABLE `subtasks` ( CREATE TABLE `subtasks` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL, `title` text NOT NULL,
`status` int(11) DEFAULT '0', `status` int(11) DEFAULT '0',
`time_estimated` float DEFAULT NULL, `time_estimated` float DEFAULT NULL,
`time_spent` float DEFAULT NULL, `time_spent` float DEFAULT NULL,
@ -503,7 +503,7 @@ DROP TABLE IF EXISTS `swimlanes`;
/*!40101 SET character_set_client = utf8 */; /*!40101 SET character_set_client = utf8 */;
CREATE TABLE `swimlanes` ( CREATE TABLE `swimlanes` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(200) NOT NULL, `name` varchar(255) NOT NULL,
`position` int(11) DEFAULT '1', `position` int(11) DEFAULT '1',
`is_active` int(11) DEFAULT '1', `is_active` int(11) DEFAULT '1',
`project_id` int(11) DEFAULT NULL, `project_id` int(11) DEFAULT NULL,
@ -532,8 +532,8 @@ CREATE TABLE `task_has_external_links` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`link_type` varchar(100) NOT NULL, `link_type` varchar(100) NOT NULL,
`dependency` varchar(100) NOT NULL, `dependency` varchar(100) NOT NULL,
`title` varchar(255) NOT NULL, `title` text NOT NULL,
`url` varchar(255) NOT NULL, `url` text NOT NULL,
`date_creation` int(11) NOT NULL, `date_creation` int(11) NOT NULL,
`date_modification` int(11) NOT NULL, `date_modification` int(11) NOT NULL,
`task_id` int(11) NOT NULL, `task_id` int(11) NOT NULL,
@ -548,8 +548,8 @@ DROP TABLE IF EXISTS `task_has_files`;
/*!40101 SET character_set_client = utf8 */; /*!40101 SET character_set_client = utf8 */;
CREATE TABLE `task_has_files` ( CREATE TABLE `task_has_files` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL, `name` text NOT NULL,
`path` varchar(255) DEFAULT NULL, `path` text NOT NULL,
`is_image` tinyint(1) DEFAULT '0', `is_image` tinyint(1) DEFAULT '0',
`task_id` int(11) NOT NULL, `task_id` int(11) NOT NULL,
`date` bigint(20) DEFAULT NULL, `date` bigint(20) DEFAULT NULL,
@ -607,7 +607,7 @@ DROP TABLE IF EXISTS `tasks`;
/*!40101 SET character_set_client = utf8 */; /*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tasks` ( CREATE TABLE `tasks` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL, `title` text NOT NULL,
`description` text, `description` text,
`date_creation` bigint(20) DEFAULT NULL, `date_creation` bigint(20) DEFAULT NULL,
`date_completed` bigint(20) DEFAULT NULL, `date_completed` bigint(20) DEFAULT NULL,
@ -622,7 +622,7 @@ CREATE TABLE `tasks` (
`category_id` int(11) DEFAULT '0', `category_id` int(11) DEFAULT '0',
`creator_id` int(11) DEFAULT '0', `creator_id` int(11) DEFAULT '0',
`date_modification` int(11) DEFAULT '0', `date_modification` int(11) DEFAULT '0',
`reference` varchar(50) DEFAULT '', `reference` varchar(255) DEFAULT '',
`date_started` bigint(20) DEFAULT NULL, `date_started` bigint(20) DEFAULT NULL,
`time_spent` float DEFAULT '0', `time_spent` float DEFAULT '0',
`time_estimated` float DEFAULT '0', `time_estimated` float DEFAULT '0',
@ -718,7 +718,7 @@ CREATE TABLE `user_has_unread_notifications` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL, `user_id` int(11) NOT NULL,
`date_creation` bigint(20) NOT NULL, `date_creation` bigint(20) NOT NULL,
`event_name` varchar(50) NOT NULL, `event_name` text NOT NULL,
`event_data` text NOT NULL, `event_data` text NOT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `user_id` (`user_id`), KEY `user_id` (`user_id`),
@ -730,7 +730,7 @@ DROP TABLE IF EXISTS `users`;
/*!40101 SET character_set_client = utf8 */; /*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` ( CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(50) NOT NULL, `username` varchar(255) NOT NULL,
`password` varchar(255) DEFAULT NULL, `password` varchar(255) DEFAULT NULL,
`is_ldap_user` tinyint(1) DEFAULT '0', `is_ldap_user` tinyint(1) DEFAULT '0',
`name` varchar(255) DEFAULT NULL, `name` varchar(255) DEFAULT NULL,
@ -752,7 +752,7 @@ CREATE TABLE `users` (
`is_active` tinyint(1) DEFAULT '1', `is_active` tinyint(1) DEFAULT '1',
`avatar_path` varchar(255) DEFAULT NULL, `avatar_path` varchar(255) DEFAULT NULL,
`api_access_token` varchar(255) DEFAULT NULL, `api_access_token` varchar(255) DEFAULT NULL,
`filter` varchar(255) DEFAULT NULL, `filter` text,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `users_username_idx` (`username`) UNIQUE KEY `users_username_idx` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@ -776,7 +776,7 @@ CREATE TABLE `users` (
LOCK TABLES `settings` WRITE; LOCK TABLES `settings` WRITE;
/*!40000 ALTER TABLE `settings` DISABLE KEYS */; /*!40000 ALTER TABLE `settings` DISABLE KEYS */;
INSERT INTO `settings` VALUES ('api_token','36e88ee4ad58bc71a7879d8cadac15142fdd25550f4910b8ec8c7525730c',0,0),('application_currency','USD',0,0),('application_date_format','m/d/Y',0,0),('application_language','en_US',0,0),('application_stylesheet','',0,0),('application_timezone','UTC',0,0),('application_url','',0,0),('board_columns','',0,0),('board_highlight_period','172800',0,0),('board_private_refresh_interval','10',0,0),('board_public_refresh_interval','60',0,0),('calendar_project_tasks','date_started',0,0),('calendar_user_subtasks_time_tracking','0',0,0),('calendar_user_tasks','date_started',0,0),('cfd_include_closed_tasks','1',0,0),('default_color','yellow',0,0),('integration_gravatar','0',0,0),('password_reset','1',0,0),('project_categories','',0,0),('subtask_restriction','0',0,0),('subtask_time_tracking','1',0,0),('webhook_token','99225408c1094eead14b25dbe9f7254ec233bd54aea02b8dff7e7d25ae50',0,0),('webhook_url','',0,0); INSERT INTO `settings` VALUES ('api_token','5e51f5e81b816fe52594c692abc6ab51c53024048953e0a312d378ebda7e',0,0),('application_currency','USD',0,0),('application_date_format','m/d/Y',0,0),('application_language','en_US',0,0),('application_stylesheet','',0,0),('application_timezone','UTC',0,0),('application_url','',0,0),('board_columns','',0,0),('board_highlight_period','172800',0,0),('board_private_refresh_interval','10',0,0),('board_public_refresh_interval','60',0,0),('calendar_project_tasks','date_started',0,0),('calendar_user_subtasks_time_tracking','0',0,0),('calendar_user_tasks','date_started',0,0),('cfd_include_closed_tasks','1',0,0),('default_color','yellow',0,0),('integration_gravatar','0',0,0),('password_reset','1',0,0),('project_categories','',0,0),('subtask_restriction','0',0,0),('subtask_time_tracking','1',0,0),('webhook_token','5739f13ff6db190c5983328d7bed8aff703b7e78236890e9030888194121',0,0),('webhook_url','',0,0);
/*!40000 ALTER TABLE `settings` ENABLE KEYS */; /*!40000 ALTER TABLE `settings` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@ -805,4 +805,4 @@ UNLOCK TABLES;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
INSERT INTO users (username, password, role) VALUES ('admin', '$2y$10$j/bvk6WblIHAyAJEBXLgBeoOjJ1oHsuA0VTUf85lRYOJ4czssCuI6', 'app-admin');INSERT INTO schema_version VALUES ('127'); INSERT INTO users (username, password, role) VALUES ('admin', '$2y$10$eu5txjAlmBRZYmAcWjHAx.BSCIYL6RMTIyrIWG4eqWFtf62DCJPWy', 'app-admin');INSERT INTO schema_version VALUES ('129');

View File

@ -2,8 +2,8 @@
-- PostgreSQL database dump -- PostgreSQL database dump
-- --
-- Dumped from database version 9.6.4 -- Dumped from database version 9.6.3
-- Dumped by pg_dump version 9.6.4 -- Dumped by pg_dump version 9.6.3
SET statement_timeout = 0; SET statement_timeout = 0;
SET lock_timeout = 0; SET lock_timeout = 0;
@ -33,8 +33,8 @@ SET default_with_oids = false;
CREATE TABLE "action_has_params" ( CREATE TABLE "action_has_params" (
"id" integer NOT NULL, "id" integer NOT NULL,
"action_id" integer NOT NULL, "action_id" integer NOT NULL,
"name" character varying(50) NOT NULL, "name" "text" NOT NULL,
"value" character varying(50) NOT NULL "value" "text" NOT NULL
); );
@ -64,8 +64,8 @@ ALTER SEQUENCE "action_has_params_id_seq" OWNED BY "action_has_params"."id";
CREATE TABLE "actions" ( CREATE TABLE "actions" (
"id" integer NOT NULL, "id" integer NOT NULL,
"project_id" integer NOT NULL, "project_id" integer NOT NULL,
"event_name" character varying(50) NOT NULL, "event_name" "text" NOT NULL,
"action_name" character varying(255) NOT NULL "action_name" "text" NOT NULL
); );
@ -197,7 +197,7 @@ CREATE TABLE "comments" (
"user_id" integer DEFAULT 0, "user_id" integer DEFAULT 0,
"date_creation" bigint NOT NULL, "date_creation" bigint NOT NULL,
"comment" "text", "comment" "text",
"reference" character varying(50) DEFAULT ''::character varying, "reference" "text" DEFAULT ''::character varying,
"date_modification" bigint "date_modification" bigint
); );
@ -237,10 +237,10 @@ CREATE TABLE "currencies" (
CREATE TABLE "custom_filters" ( CREATE TABLE "custom_filters" (
"id" integer NOT NULL, "id" integer NOT NULL,
"filter" character varying(100) NOT NULL, "filter" "text" NOT NULL,
"project_id" integer NOT NULL, "project_id" integer NOT NULL,
"user_id" integer NOT NULL, "user_id" integer NOT NULL,
"name" character varying(100) NOT NULL, "name" "text" NOT NULL,
"is_shared" boolean DEFAULT false, "is_shared" boolean DEFAULT false,
"append" boolean DEFAULT false "append" boolean DEFAULT false
); );
@ -282,7 +282,7 @@ CREATE TABLE "group_has_users" (
CREATE TABLE "groups" ( CREATE TABLE "groups" (
"id" integer NOT NULL, "id" integer NOT NULL,
"external_id" character varying(255) DEFAULT ''::character varying, "external_id" character varying(255) DEFAULT ''::character varying,
"name" character varying(100) NOT NULL "name" "text" NOT NULL
); );
@ -442,7 +442,7 @@ ALTER SEQUENCE "predefined_task_descriptions_id_seq" OWNED BY "predefined_task_d
CREATE TABLE "project_activities" ( CREATE TABLE "project_activities" (
"id" integer NOT NULL, "id" integer NOT NULL,
"date_creation" bigint NOT NULL, "date_creation" bigint NOT NULL,
"event_name" character varying(50) NOT NULL, "event_name" "text" NOT NULL,
"creator_id" integer, "creator_id" integer,
"project_id" integer, "project_id" integer,
"task_id" integer, "task_id" integer,
@ -572,8 +572,8 @@ ALTER SEQUENCE "project_has_categories_id_seq" OWNED BY "project_has_categories"
CREATE TABLE "project_has_files" ( CREATE TABLE "project_has_files" (
"id" integer NOT NULL, "id" integer NOT NULL,
"project_id" integer NOT NULL, "project_id" integer NOT NULL,
"name" character varying(255) NOT NULL, "name" "text" NOT NULL,
"path" character varying(255) NOT NULL, "path" "text" NOT NULL,
"is_image" boolean DEFAULT false, "is_image" boolean DEFAULT false,
"size" integer DEFAULT 0 NOT NULL, "size" integer DEFAULT 0 NOT NULL,
"user_id" integer DEFAULT 0 NOT NULL, "user_id" integer DEFAULT 0 NOT NULL,
@ -732,7 +732,7 @@ ALTER SEQUENCE "project_role_has_restrictions_restriction_id_seq" OWNED BY "proj
CREATE TABLE "projects" ( CREATE TABLE "projects" (
"id" integer NOT NULL, "id" integer NOT NULL,
"name" character varying(255) NOT NULL, "name" "text" NOT NULL,
"is_active" boolean DEFAULT true, "is_active" boolean DEFAULT true,
"token" character varying(255), "token" character varying(255),
"last_modified" bigint DEFAULT 0, "last_modified" bigint DEFAULT 0,
@ -746,7 +746,7 @@ CREATE TABLE "projects" (
"priority_default" integer DEFAULT 0, "priority_default" integer DEFAULT 0,
"priority_start" integer DEFAULT 0, "priority_start" integer DEFAULT 0,
"priority_end" integer DEFAULT 3, "priority_end" integer DEFAULT 3,
"email" character varying(255), "email" "text",
"predefined_email_subjects" "text" "predefined_email_subjects" "text"
); );
@ -876,7 +876,7 @@ ALTER SEQUENCE "subtask_time_tracking_id_seq" OWNED BY "subtask_time_tracking"."
CREATE TABLE "subtasks" ( CREATE TABLE "subtasks" (
"id" integer NOT NULL, "id" integer NOT NULL,
"title" character varying(255) NOT NULL, "title" "text" NOT NULL,
"status" smallint DEFAULT 0, "status" smallint DEFAULT 0,
"time_estimated" double precision DEFAULT 0, "time_estimated" double precision DEFAULT 0,
"time_spent" double precision DEFAULT 0, "time_spent" double precision DEFAULT 0,
@ -892,7 +892,7 @@ CREATE TABLE "subtasks" (
CREATE TABLE "swimlanes" ( CREATE TABLE "swimlanes" (
"id" integer NOT NULL, "id" integer NOT NULL,
"name" character varying(200) NOT NULL, "name" "text" NOT NULL,
"position" integer DEFAULT 1, "position" integer DEFAULT 1,
"is_active" boolean DEFAULT true, "is_active" boolean DEFAULT true,
"project_id" integer, "project_id" integer,
@ -957,8 +957,8 @@ CREATE TABLE "task_has_external_links" (
"id" integer NOT NULL, "id" integer NOT NULL,
"link_type" character varying(100) NOT NULL, "link_type" character varying(100) NOT NULL,
"dependency" character varying(100) NOT NULL, "dependency" character varying(100) NOT NULL,
"title" character varying(255) NOT NULL, "title" "text" NOT NULL,
"url" character varying(255) NOT NULL, "url" "text" NOT NULL,
"date_creation" integer NOT NULL, "date_creation" integer NOT NULL,
"date_modification" integer NOT NULL, "date_modification" integer NOT NULL,
"task_id" integer NOT NULL, "task_id" integer NOT NULL,
@ -991,8 +991,8 @@ ALTER SEQUENCE "task_has_external_links_id_seq" OWNED BY "task_has_external_link
CREATE TABLE "task_has_files" ( CREATE TABLE "task_has_files" (
"id" integer NOT NULL, "id" integer NOT NULL,
"name" character varying(255) NOT NULL, "name" "text" NOT NULL,
"path" character varying(255), "path" "text",
"is_image" boolean DEFAULT false, "is_image" boolean DEFAULT false,
"task_id" integer NOT NULL, "task_id" integer NOT NULL,
"date" bigint DEFAULT 0 NOT NULL, "date" bigint DEFAULT 0 NOT NULL,
@ -1099,7 +1099,7 @@ CREATE TABLE "task_has_tags" (
CREATE TABLE "tasks" ( CREATE TABLE "tasks" (
"id" integer NOT NULL, "id" integer NOT NULL,
"title" character varying(255) NOT NULL, "title" "text" NOT NULL,
"description" "text", "description" "text",
"date_creation" bigint, "date_creation" bigint,
"color_id" character varying(255), "color_id" character varying(255),
@ -1114,7 +1114,7 @@ CREATE TABLE "tasks" (
"category_id" integer DEFAULT 0, "category_id" integer DEFAULT 0,
"creator_id" integer DEFAULT 0, "creator_id" integer DEFAULT 0,
"date_modification" integer DEFAULT 0, "date_modification" integer DEFAULT 0,
"reference" character varying(50) DEFAULT ''::character varying, "reference" "text" DEFAULT ''::character varying,
"date_started" bigint, "date_started" bigint,
"time_spent" double precision DEFAULT 0, "time_spent" double precision DEFAULT 0,
"time_estimated" double precision DEFAULT 0, "time_estimated" double precision DEFAULT 0,
@ -1248,7 +1248,7 @@ CREATE TABLE "user_has_unread_notifications" (
"id" integer NOT NULL, "id" integer NOT NULL,
"user_id" integer NOT NULL, "user_id" integer NOT NULL,
"date_creation" bigint NOT NULL, "date_creation" bigint NOT NULL,
"event_name" character varying(50) NOT NULL, "event_name" "text" NOT NULL,
"event_data" "text" NOT NULL "event_data" "text" NOT NULL
); );
@ -1278,7 +1278,7 @@ ALTER SEQUENCE "user_has_unread_notifications_id_seq" OWNED BY "user_has_unread_
CREATE TABLE "users" ( CREATE TABLE "users" (
"id" integer NOT NULL, "id" integer NOT NULL,
"username" character varying(50) NOT NULL, "username" "text" NOT NULL,
"password" character varying(255), "password" character varying(255),
"is_ldap_user" boolean DEFAULT false, "is_ldap_user" boolean DEFAULT false,
"name" character varying(255), "name" character varying(255),
@ -1300,7 +1300,7 @@ CREATE TABLE "users" (
"is_active" boolean DEFAULT true, "is_active" boolean DEFAULT true,
"avatar_path" character varying(255), "avatar_path" character varying(255),
"api_access_token" character varying(255) DEFAULT NULL::character varying, "api_access_token" character varying(255) DEFAULT NULL::character varying,
"filter" character varying(255) DEFAULT NULL::character varying "filter" "text" DEFAULT NULL::character varying
); );
@ -2624,8 +2624,8 @@ ALTER TABLE ONLY "user_has_unread_notifications"
-- PostgreSQL database dump -- PostgreSQL database dump
-- --
-- Dumped from database version 9.6.4 -- Dumped from database version 9.6.3
-- Dumped by pg_dump version 9.6.4 -- Dumped by pg_dump version 9.6.3
SET statement_timeout = 0; SET statement_timeout = 0;
SET lock_timeout = 0; SET lock_timeout = 0;
@ -2645,8 +2645,8 @@ INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('board_high
INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('board_public_refresh_interval', '60', 0, 0); INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('board_public_refresh_interval', '60', 0, 0);
INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('board_private_refresh_interval', '10', 0, 0); INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('board_private_refresh_interval', '10', 0, 0);
INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('board_columns', '', 0, 0); INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('board_columns', '', 0, 0);
INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('webhook_token', '1ff45d3f47d1dc00a9bd51a335d2fe705714e4c4073d486c2c8e6e161c28', 0, 0); INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('webhook_token', '60a9320b2835f6fa01f6ec445212e3eb6d919887a81a0414d9928d908315', 0, 0);
INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('api_token', '261e6e871a415183978e3a25f65ddb63c93e680931bef4c6b1728ed1a07c', 0, 0); INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('api_token', '5713f6ffb5fdef788497bf45e43cedaeff565135f8ad3a5015ab338f5251', 0, 0);
INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('application_language', 'en_US', 0, 0); INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('application_language', 'en_US', 0, 0);
INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('application_timezone', 'UTC', 0, 0); INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('application_timezone', 'UTC', 0, 0);
INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('application_url', '', 0, 0); INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('application_url', '', 0, 0);
@ -2674,8 +2674,8 @@ INSERT INTO settings (option, value, changed_by, changed_on) VALUES ('password_r
-- PostgreSQL database dump -- PostgreSQL database dump
-- --
-- Dumped from database version 9.6.4 -- Dumped from database version 9.6.3
-- Dumped by pg_dump version 9.6.4 -- Dumped by pg_dump version 9.6.3
SET statement_timeout = 0; SET statement_timeout = 0;
SET lock_timeout = 0; SET lock_timeout = 0;
@ -2715,4 +2715,4 @@ SELECT pg_catalog.setval('links_id_seq', 11, true);
-- PostgreSQL database dump complete -- PostgreSQL database dump complete
-- --
INSERT INTO users (username, password, role) VALUES ('admin', '$2y$10$j/bvk6WblIHAyAJEBXLgBeoOjJ1oHsuA0VTUf85lRYOJ4czssCuI6', 'app-admin');INSERT INTO schema_version VALUES ('106'); INSERT INTO users (username, password, role) VALUES ('admin', '$2y$10$eu5txjAlmBRZYmAcWjHAx.BSCIYL6RMTIyrIWG4eqWFtf62DCJPWy', 'app-admin');INSERT INTO schema_version VALUES ('108');

View File

@ -12,7 +12,7 @@ const VERSION = 118;
function version_118(PDO $pdo) function version_118(PDO $pdo)
{ {
$pdo->exec('ALTER TABLE users ADD COLUMN filter VARCHAR(255) DEFAULT NULL'); $pdo->exec('ALTER TABLE users ADD COLUMN filter TEXT');
} }
function version_117(PDO $pdo) function version_117(PDO $pdo)

View File

@ -5,7 +5,7 @@
<?= $this->form->csrf() ?> <?= $this->form->csrf() ?>
<?= $this->form->label(t('Category Name'), 'name') ?> <?= $this->form->label(t('Category Name'), 'name') ?>
<?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> <?= $this->form->text('name', $values, $errors, array('autofocus', 'required')) ?>
<?= $this->modal->submitButtons() ?> <?= $this->modal->submitButtons() ?>
</form> </form>

View File

@ -6,7 +6,7 @@
<?= $this->form->csrf() ?> <?= $this->form->csrf() ?>
<?= $this->form->label(t('Category Name'), 'name') ?> <?= $this->form->label(t('Category Name'), 'name') ?>
<?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"', 'tabindex="1"')) ?> <?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="255"', 'tabindex="1"')) ?>
<?= $this->form->label(t('Description'), 'description') ?> <?= $this->form->label(t('Description'), 'description') ?>
<?= $this->form->textEditor('description', $values, $errors, array('tabindex' => 2)) ?> <?= $this->form->textEditor('description', $values, $errors, array('tabindex' => 2)) ?>

View File

@ -5,7 +5,7 @@
<?= $this->form->csrf() ?> <?= $this->form->csrf() ?>
<?= $this->form->label(t('Title'), 'title') ?> <?= $this->form->label(t('Title'), 'title') ?>
<?= $this->form->text('title', $values, $errors, array('autofocus', 'required', 'maxlength="50"', 'tabindex="1"')) ?> <?= $this->form->text('title', $values, $errors, array('autofocus', 'required', 'maxlength="255"', 'tabindex="1"')) ?>
<?= $this->form->label(t('Task limit'), 'task_limit') ?> <?= $this->form->label(t('Task limit'), 'task_limit') ?>
<?= $this->form->number('task_limit', $values, $errors, array('tabindex="2"')) ?> <?= $this->form->number('task_limit', $values, $errors, array('tabindex="2"')) ?>

View File

@ -6,7 +6,7 @@
<?= $this->form->csrf() ?> <?= $this->form->csrf() ?>
<?= $this->form->label(t('Title'), 'title') ?> <?= $this->form->label(t('Title'), 'title') ?>
<?= $this->form->text('title', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> <?= $this->form->text('title', $values, $errors, array('autofocus', 'required', 'maxlength="255"')) ?>
<?= $this->form->label(t('Task limit'), 'task_limit') ?> <?= $this->form->label(t('Task limit'), 'task_limit') ?>
<?= $this->form->number('task_limit', $values, $errors) ?> <?= $this->form->number('task_limit', $values, $errors) ?>

View File

@ -5,10 +5,10 @@
<?= $this->form->csrf() ?> <?= $this->form->csrf() ?>
<?= $this->form->label(t('Name'), 'name') ?> <?= $this->form->label(t('Name'), 'name') ?>
<?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="100"')) ?> <?= $this->form->text('name', $values, $errors, array('autofocus', 'required')) ?>
<?= $this->form->label(t('Filter'), 'filter') ?> <?= $this->form->label(t('Filter'), 'filter') ?>
<?= $this->form->text('filter', $values, $errors, array('required', 'maxlength="100"')) ?> <?= $this->form->text('filter', $values, $errors, array('required')) ?>
<?php if ($this->user->hasProjectAccess('ProjectEditController', 'show', $project['id'])): ?> <?php if ($this->user->hasProjectAccess('ProjectEditController', 'show', $project['id'])): ?>
<?= $this->form->checkbox('is_shared', t('Share with all project members'), 1) ?> <?= $this->form->checkbox('is_shared', t('Share with all project members'), 1) ?>

View File

@ -8,10 +8,10 @@
<?= $this->form->hidden('user_id', $values) ?> <?= $this->form->hidden('user_id', $values) ?>
<?= $this->form->label(t('Name'), 'name') ?> <?= $this->form->label(t('Name'), 'name') ?>
<?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="100"')) ?> <?= $this->form->text('name', $values, $errors, array('autofocus', 'required')) ?>
<?= $this->form->label(t('Filter'), 'filter') ?> <?= $this->form->label(t('Filter'), 'filter') ?>
<?= $this->form->text('filter', $values, $errors, array('required', 'maxlength="100"')) ?> <?= $this->form->text('filter', $values, $errors, array('required')) ?>
<?php if ($this->user->hasProjectAccess('ProjectEditController', 'show', $project['id'])): ?> <?php if ($this->user->hasProjectAccess('ProjectEditController', 'show', $project['id'])): ?>
<?= $this->form->checkbox('is_shared', t('Share with all project members'), 1, $values['is_shared'] == 1) ?> <?= $this->form->checkbox('is_shared', t('Share with all project members'), 1, $values['is_shared'] == 1) ?>

View File

@ -5,7 +5,7 @@
<?= $this->form->csrf() ?> <?= $this->form->csrf() ?>
<?= $this->form->label(t('Name'), 'name') ?> <?= $this->form->label(t('Name'), 'name') ?>
<?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="100"')) ?> <?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="255"')) ?>
<?= $this->modal->submitButtons() ?> <?= $this->modal->submitButtons() ?>
</form> </form>

View File

@ -8,7 +8,7 @@
<?= $this->form->hidden('external_id', $values) ?> <?= $this->form->hidden('external_id', $values) ?>
<?= $this->form->label(t('Name'), 'name') ?> <?= $this->form->label(t('Name'), 'name') ?>
<?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="100"')) ?> <?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="255"')) ?>
<?= $this->modal->submitButtons() ?> <?= $this->modal->submitButtons() ?>
</form> </form>

View File

@ -8,7 +8,7 @@
<?= $this->form->hidden('is_private', $values) ?> <?= $this->form->hidden('is_private', $values) ?>
<?= $this->form->label(t('Name'), 'name') ?> <?= $this->form->label(t('Name'), 'name') ?>
<?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> <?= $this->form->text('name', $values, $errors, array('autofocus', 'required')) ?>
<?php if (count($projects_list) > 1): ?> <?php if (count($projects_list) > 1): ?>
<?= $this->form->label(t('Create from another project'), 'src_project_id') ?> <?= $this->form->label(t('Create from another project'), 'src_project_id') ?>

View File

@ -14,10 +14,10 @@
<legend><?= t('General') ?></legend> <legend><?= t('General') ?></legend>
<?= $this->form->label(t('Name'), 'name') ?> <?= $this->form->label(t('Name'), 'name') ?>
<?= $this->form->text('name', $values, $errors, array('required', 'maxlength="50"', 'autofocus', 'tabindex="1"')) ?> <?= $this->form->text('name', $values, $errors, array('required', 'autofocus', 'tabindex="1"')) ?>
<?= $this->form->label(t('Email'), 'email') ?> <?= $this->form->label(t('Email'), 'email') ?>
<?= $this->form->email('email', $values, $errors, array('maxlength="255"', 'tabindex="2"')) ?> <?= $this->form->email('email', $values, $errors, array('tabindex="2"')) ?>
<p class="form-help"><?= t('The project email is optional and could be used by several plugins.') ?></p> <p class="form-help"><?= t('The project email is optional and could be used by several plugins.') ?></p>
<?= $this->form->label(t('Identifier'), 'identifier') ?> <?= $this->form->label(t('Identifier'), 'identifier') ?>

View File

@ -5,7 +5,7 @@
<?= $this->form->csrf() ?> <?= $this->form->csrf() ?>
<?= $this->form->label(t('Name'), 'name') ?> <?= $this->form->label(t('Name'), 'name') ?>
<?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"', 'tabindex="1"')) ?> <?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="255"', 'tabindex="1"')) ?>
<?= $this->form->label(t('Description'), 'description') ?> <?= $this->form->label(t('Description'), 'description') ?>
<?= $this->form->textEditor('description', $values, $errors, array('tabindex' => 2)) ?> <?= $this->form->textEditor('description', $values, $errors, array('tabindex' => 2)) ?>

View File

@ -6,7 +6,7 @@
<?= $this->form->csrf() ?> <?= $this->form->csrf() ?>
<?= $this->form->label(t('Name'), 'name') ?> <?= $this->form->label(t('Name'), 'name') ?>
<?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"', 'tabindex="1"')) ?> <?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="255"', 'tabindex="1"')) ?>
<?= $this->form->label(t('Description'), 'description') ?> <?= $this->form->label(t('Description'), 'description') ?>
<?= $this->form->textEditor('description', $values, $errors, array('tabindex' => 2)) ?> <?= $this->form->textEditor('description', $values, $errors, array('tabindex' => 2)) ?>

View File

@ -10,7 +10,7 @@
<legend><?= t('Profile') ?></legend> <legend><?= t('Profile') ?></legend>
<?= $this->form->label(t('Username'), 'username') ?> <?= $this->form->label(t('Username'), 'username') ?>
<?= $this->form->text('username', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> <?= $this->form->text('username', $values, $errors, array('autofocus', 'required', 'maxlength="255"')) ?>
<?= $this->form->label(t('Name'), 'name') ?> <?= $this->form->label(t('Name'), 'name') ?>
<?= $this->form->text('name', $values, $errors) ?> <?= $this->form->text('name', $values, $errors) ?>

View File

@ -9,7 +9,7 @@
<legend><?= t('Profile') ?></legend> <legend><?= t('Profile') ?></legend>
<?= $this->form->label(t('Username'), 'username') ?> <?= $this->form->label(t('Username'), 'username') ?>
<?= $this->form->text('username', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?> <?= $this->form->text('username', $values, $errors, array('autofocus', 'required', 'maxlength="255"')) ?>
<?= $this->form->label(t('Name'), 'name') ?> <?= $this->form->label(t('Name'), 'name') ?>
<?= $this->form->text('name', $values, $errors) ?> <?= $this->form->text('name', $values, $errors) ?>

View File

@ -8,7 +8,7 @@
<fieldset> <fieldset>
<legend><?= t('Profile') ?></legend> <legend><?= t('Profile') ?></legend>
<?= $this->form->label(t('Username'), 'username') ?> <?= $this->form->label(t('Username'), 'username') ?>
<?= $this->form->text('username', $values, $errors, array('autofocus', 'required', isset($values['is_ldap_user']) && $values['is_ldap_user'] == 1 && !$this->user->isAdmin() ? 'readonly' : '', 'maxlength="50"')) ?> <?= $this->form->text('username', $values, $errors, array('autofocus', 'required', isset($values['is_ldap_user']) && $values['is_ldap_user'] == 1 && !$this->user->isAdmin() ? 'readonly' : '', 'maxlength="255"')) ?>
<?= $this->form->label(t('Name'), 'name') ?> <?= $this->form->label(t('Name'), 'name') ?>
<?= $this->form->text('name', $values, $errors, array($this->user->hasAccess('UserModificationController', 'show/edit_name') ? '' : 'readonly')) ?> <?= $this->form->text('name', $values, $errors, array($this->user->hasAccess('UserModificationController', 'show/edit_name') ? '' : 'readonly')) ?>

View File

@ -37,7 +37,7 @@ class AuthValidator extends BaseValidator
{ {
$v = new Validator($values, array( $v = new Validator($values, array(
new Validators\Required('username', t('The username 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),
new Validators\Required('password', t('The password is required')), new Validators\Required('password', t('The password is required')),
)); ));

View File

@ -68,7 +68,7 @@ class CategoryValidator extends BaseValidator
return array( return array(
new Validators\Integer('id', t('The id must be an integer')), 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\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)
); );
} }
} }

View File

@ -69,7 +69,7 @@ class ColumnValidator extends BaseValidator
new Validators\Integer('task_limit', t('This value must be an integer')), 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\GreaterThan('task_limit', t('This value must be greater than %d', -1), -1),
new Validators\Required('title', t('The title is required')), 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),
); );
} }
} }

View File

@ -91,7 +91,7 @@ class CommentValidator extends BaseValidator
new Validators\Integer('id', t('This value must be an integer')), 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('task_id', t('This value must be an integer')),
new Validators\Integer('user_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')) new Validators\Required('comment', t('Comment is required'))
); );
} }

View File

@ -28,8 +28,8 @@ class CustomFilterValidator extends BaseValidator
new Validators\Required('filter', t('Field required')), new Validators\Required('filter', t('Field required')),
new Validators\Integer('user_id', t('This value must be an integer')), 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\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('name', t('The maximum length is %d characters', 65535), 65535),
new Validators\MaxLength('filter', t('The maximum length is %d characters', 100), 100) new Validators\MaxLength('filter', t('The maximum length is %d characters', 65535), 65535)
); );
} }

View File

@ -61,9 +61,9 @@ class ExternalLinkValidator extends BaseValidator
{ {
return array( return array(
new Validators\Required('url', t('Field required')), 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\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\Required('link_type', t('Field required')),
new Validators\MaxLength('link_type', t('The maximum length is %d characters', 100), 100), new Validators\MaxLength('link_type', t('The maximum length is %d characters', 100), 100),
new Validators\Required('dependency', t('Field required')), new Validators\Required('dependency', t('Field required')),

View File

@ -62,7 +62,7 @@ class GroupValidator extends BaseValidator
{ {
return array( return array(
new Validators\Required('name', t('The name is required')), 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\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\MaxLength('external_id', t('The maximum length is %d characters', 255), 255),
new Validators\Integer('id', t('This value must be an integer')), new Validators\Integer('id', t('This value must be an integer')),

View File

@ -55,7 +55,7 @@ class PasswordResetValidator extends BaseValidator
$v = new Validator($values, array( $v = new Validator($values, array(
new Validators\Required('captcha', t('This value is required')), new Validators\Required('captcha', t('This value is required')),
new Validators\Required('username', t('The username 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( return array(

View File

@ -28,7 +28,7 @@ class ProjectValidator extends BaseValidator
new Validators\Integer('priority_start', t('This value must be an integer')), 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('priority_end', t('This value must be an integer')),
new Validators\Integer('is_active', 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('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('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), new Validators\MaxLength('end_date', t('The maximum length is %d characters', 10), 10),

View File

@ -91,7 +91,7 @@ class SubtaskValidator extends BaseValidator
return array( return array(
new Validators\Integer('id', t('The subtask id must be an integer')), 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\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('user_id', t('The user id must be an integer')),
new Validators\Integer('status', t('The status 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')), new Validators\Numeric('time_estimated', t('The time must be a numeric value')),

View File

@ -68,7 +68,7 @@ class SwimlaneValidator extends BaseValidator
return array( return array(
new Validators\Integer('id', t('The id must be an integer')), 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\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)
); );
} }
} }

View File

@ -40,8 +40,8 @@ class TaskValidator extends BaseValidator
new Validators\Integer('recurrence_trigger', t('This value must be an integer')), 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('recurrence_status', t('This value must be an integer')),
new Validators\Integer('priority', 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('title', t('The maximum length is %d characters', 65535), 65535),
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\Date('date_due', t('Invalid date'), $this->dateParser->getParserFormats()), new Validators\Date('date_due', t('Invalid date'), $this->dateParser->getParserFormats()),
new Validators\Date('date_started', 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')), new Validators\Numeric('time_spent', t('This value must be numeric')),

View File

@ -24,7 +24,7 @@ class UserValidator extends BaseValidator
{ {
return array( return array(
new Validators\MaxLength('role', t('The maximum length is %d characters', 25), 25), 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\Unique('username', t('This username is already taken'), $this->db->getConnection(), UserModel::TABLE, 'id'),
new Validators\Email('email', t('Email address invalid')), new Validators\Email('email', t('Email address invalid')),
new Validators\Integer('is_ldap_user', t('This value must be an integer')), new Validators\Integer('is_ldap_user', t('This value must be an integer')),

View File

@ -14,7 +14,7 @@ class CustomFilterValidatorTest extends Base
$r = $customFilterValidator->validateCreation(array('filter' => 'test', 'name' => 'test', 'user_id' => 1, 'project_id' => 1, 'is_shared' => 0)); $r = $customFilterValidator->validateCreation(array('filter' => 'test', 'name' => 'test', 'user_id' => 1, 'project_id' => 1, 'is_shared' => 0));
$this->assertTrue($r[0]); $this->assertTrue($r[0]);
$r = $customFilterValidator->validateCreation(array('filter' => str_repeat('a', 101), 'name' => 'test', 'user_id' => 1, 'project_id' => 1, 'is_shared' => 0)); $r = $customFilterValidator->validateCreation(array('filter' => str_repeat('a', 65536), 'name' => 'test', 'user_id' => 1, 'project_id' => 1, 'is_shared' => 0));
$this->assertFalse($r[0]); $this->assertFalse($r[0]);
$r = $customFilterValidator->validateCreation(array('name' => 'test', 'user_id' => 1, 'project_id' => 1, 'is_shared' => 0)); $r = $customFilterValidator->validateCreation(array('name' => 'test', 'user_id' => 1, 'project_id' => 1, 'is_shared' => 0));
@ -31,7 +31,7 @@ class CustomFilterValidatorTest extends Base
$r = $validator->validateModification(array('filter' => 'test', 'name' => 'test', 'user_id' => 1, 'project_id' => 1, 'is_shared' => 0)); $r = $validator->validateModification(array('filter' => 'test', 'name' => 'test', 'user_id' => 1, 'project_id' => 1, 'is_shared' => 0));
$this->assertFalse($r[0]); $this->assertFalse($r[0]);
$r = $validator->validateModification(array('id' => 1, 'filter' => str_repeat('a', 101), 'name' => 'test', 'user_id' => 1, 'project_id' => 1, 'is_shared' => 0)); $r = $validator->validateModification(array('id' => 1, 'filter' => str_repeat('a', 65536), 'name' => 'test', 'user_id' => 1, 'project_id' => 1, 'is_shared' => 0));
$this->assertFalse($r[0]); $this->assertFalse($r[0]);
$r = $validator->validateModification(array('id' => 1, 'name' => 'test', 'user_id' => 1, 'project_id' => 1, 'is_shared' => 0)); $r = $validator->validateModification(array('id' => 1, 'name' => 'test', 'user_id' => 1, 'project_id' => 1, 'is_shared' => 0));