diff options
Diffstat (limited to 'app')
26 files changed, 26 insertions, 21 deletions
diff --git a/app/Locale/bs_BA/translations.php b/app/Locale/bs_BA/translations.php index d91f8428..f4f457a1 100644 --- a/app/Locale/bs_BA/translations.php +++ b/app/Locale/bs_BA/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/cs_CZ/translations.php b/app/Locale/cs_CZ/translations.php index 35668d11..8dd5fb20 100644 --- a/app/Locale/cs_CZ/translations.php +++ b/app/Locale/cs_CZ/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/da_DK/translations.php b/app/Locale/da_DK/translations.php index af011f95..fa756b7f 100644 --- a/app/Locale/da_DK/translations.php +++ b/app/Locale/da_DK/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/de_DE/translations.php b/app/Locale/de_DE/translations.php index d22fc64e..fb6967c4 100644 --- a/app/Locale/de_DE/translations.php +++ b/app/Locale/de_DE/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/el_GR/translations.php b/app/Locale/el_GR/translations.php index 3e06c22f..44f5e0df 100644 --- a/app/Locale/el_GR/translations.php +++ b/app/Locale/el_GR/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/es_ES/translations.php b/app/Locale/es_ES/translations.php index cef9030a..cdd6c278 100644 --- a/app/Locale/es_ES/translations.php +++ b/app/Locale/es_ES/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/fi_FI/translations.php b/app/Locale/fi_FI/translations.php index cffaa0c3..4f74cbf8 100644 --- a/app/Locale/fi_FI/translations.php +++ b/app/Locale/fi_FI/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/fr_FR/translations.php b/app/Locale/fr_FR/translations.php index b428ec10..89f46181 100644 --- a/app/Locale/fr_FR/translations.php +++ b/app/Locale/fr_FR/translations.php @@ -1277,4 +1277,5 @@ return array( 'Duplicate to multiple projects' => 'Dupliquer vers plusieurs projets', 'This field is required' => 'Ce champ est requis', 'Moving a task is not permitted' => 'Déplaçer une tâche n\'est pas autorisé', + 'This value must be in the range %d to %d' => 'Cette valeur doit être définie entre %d et %d', ); diff --git a/app/Locale/hu_HU/translations.php b/app/Locale/hu_HU/translations.php index bd8714eb..7123d461 100644 --- a/app/Locale/hu_HU/translations.php +++ b/app/Locale/hu_HU/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/id_ID/translations.php b/app/Locale/id_ID/translations.php index 78b465ab..ce52d328 100644 --- a/app/Locale/id_ID/translations.php +++ b/app/Locale/id_ID/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/it_IT/translations.php b/app/Locale/it_IT/translations.php index 0cd91de1..e4f51b3a 100644 --- a/app/Locale/it_IT/translations.php +++ b/app/Locale/it_IT/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/ja_JP/translations.php b/app/Locale/ja_JP/translations.php index 015868d8..20d2a145 100644 --- a/app/Locale/ja_JP/translations.php +++ b/app/Locale/ja_JP/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/ko_KR/translations.php b/app/Locale/ko_KR/translations.php index 00407b41..5e9110ea 100644 --- a/app/Locale/ko_KR/translations.php +++ b/app/Locale/ko_KR/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/my_MY/translations.php b/app/Locale/my_MY/translations.php index 944bc800..e3c852ac 100644 --- a/app/Locale/my_MY/translations.php +++ b/app/Locale/my_MY/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/nb_NO/translations.php b/app/Locale/nb_NO/translations.php index c81dde89..ff819787 100644 --- a/app/Locale/nb_NO/translations.php +++ b/app/Locale/nb_NO/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/nl_NL/translations.php b/app/Locale/nl_NL/translations.php index 4a98592a..22c76713 100644 --- a/app/Locale/nl_NL/translations.php +++ b/app/Locale/nl_NL/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/pl_PL/translations.php b/app/Locale/pl_PL/translations.php index 6ebd1683..be39d095 100644 --- a/app/Locale/pl_PL/translations.php +++ b/app/Locale/pl_PL/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/pt_BR/translations.php b/app/Locale/pt_BR/translations.php index 461d661a..95cd1067 100644 --- a/app/Locale/pt_BR/translations.php +++ b/app/Locale/pt_BR/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/pt_PT/translations.php b/app/Locale/pt_PT/translations.php index 655285b9..073a68c5 100644 --- a/app/Locale/pt_PT/translations.php +++ b/app/Locale/pt_PT/translations.php @@ -1276,4 +1276,5 @@ return array( 'Duplicate to multiple projects' => 'Duplicar para vários projetos', 'This field is required' => 'Este campo é obrigatório', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/ru_RU/translations.php b/app/Locale/ru_RU/translations.php index 36096aed..8a8147cc 100644 --- a/app/Locale/ru_RU/translations.php +++ b/app/Locale/ru_RU/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/sr_Latn_RS/translations.php b/app/Locale/sr_Latn_RS/translations.php index ac7e581b..6b5bd784 100644 --- a/app/Locale/sr_Latn_RS/translations.php +++ b/app/Locale/sr_Latn_RS/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/sv_SE/translations.php b/app/Locale/sv_SE/translations.php index 3ed3d61f..d8275616 100644 --- a/app/Locale/sv_SE/translations.php +++ b/app/Locale/sv_SE/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/th_TH/translations.php b/app/Locale/th_TH/translations.php index 6e9cc690..3cf7e3e5 100644 --- a/app/Locale/th_TH/translations.php +++ b/app/Locale/th_TH/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/tr_TR/translations.php b/app/Locale/tr_TR/translations.php index 79d03822..de88c1d6 100644 --- a/app/Locale/tr_TR/translations.php +++ b/app/Locale/tr_TR/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Locale/zh_CN/translations.php b/app/Locale/zh_CN/translations.php index 4a7e6c5b..6dccd6cc 100644 --- a/app/Locale/zh_CN/translations.php +++ b/app/Locale/zh_CN/translations.php @@ -1276,4 +1276,5 @@ return array( // 'Duplicate to multiple projects' => '', // 'This field is required' => '', // 'Moving a task is not permitted' => '', + // 'This value must be in the range %d to %d' => '', ); diff --git a/app/Validator/TaskValidator.php b/app/Validator/TaskValidator.php index 8aa5c440..e3b0eded 100644 --- a/app/Validator/TaskValidator.php +++ b/app/Validator/TaskValidator.php @@ -28,6 +28,7 @@ class TaskValidator extends BaseValidator new Validators\Integer('owner_id', t('This value must be an integer')), new Validators\Integer('creator_id', t('This value must be an integer')), new Validators\Integer('score', t('This value must be an integer')), + new Validators\Range('score', t('This value must be in the range %d to %d', -2147483647, 2147483647), -2147483647, 2147483647), new Validators\Integer('category_id', t('This value must be an integer')), new Validators\Integer('swimlane_id', t('This value must be an integer')), new Validators\Integer('recurrence_child', t('This value must be an integer')), @@ -96,27 +97,6 @@ class TaskValidator extends BaseValidator } /** - * Validate description creation - * - * @access public - * @param array $values Form values - * @return array $valid, $errors [0] = Success or not, [1] = List of errors - */ - public function validateDescriptionCreation(array $values) - { - $rules = array( - new Validators\Required('id', t('The id is required')), - ); - - $v = new Validator($values, array_merge($rules, $this->commonValidationRules())); - - return array( - $v->execute(), - $v->getErrors() - ); - } - - /** * Validate edit recurrence * * @access public |