diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-20 19:52:34 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-20 19:52:34 -0500 |
commit | b84edaaf13ba854290099b0df452f61e9b595a17 (patch) | |
tree | d59cb64e7159321ae655db251ec3f72ce4ea4588 /app | |
parent | 99a8d153cf8c3143313d8c47ef576144b23f815f (diff) |
Description should not be mandatory, see #400
Diffstat (limited to 'app')
-rw-r--r-- | app/Model/TaskValidator.php | 1 | ||||
-rw-r--r-- | app/Template/task_edit_description.php | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/app/Model/TaskValidator.php b/app/Model/TaskValidator.php index 816008cf..ecaf0902 100644 --- a/app/Model/TaskValidator.php +++ b/app/Model/TaskValidator.php @@ -70,7 +70,6 @@ class TaskValidator extends Base { $rules = array( new Validators\Required('id', t('The id is required')), - new Validators\Required('description', t('The description is required')), ); $v = new Validator($values, array_merge($rules, $this->commonValidationRules())); diff --git a/app/Template/task_edit_description.php b/app/Template/task_edit_description.php index 2d2a4d0b..09dca30a 100644 --- a/app/Template/task_edit_description.php +++ b/app/Template/task_edit_description.php @@ -7,7 +7,7 @@ <?= Helper\form_csrf() ?> <?= Helper\form_hidden('id', $values) ?> - <?= Helper\form_textarea('description', $values, $errors, array('autofocus', 'required', 'placeholder="'.t('Leave a description').'"'), 'description-textarea') ?><br/> + <?= Helper\form_textarea('description', $values, $errors, array('autofocus', 'placeholder="'.t('Leave a description').'"'), 'description-textarea') ?><br/> <div class="form-help"><a href="http://kanboard.net/documentation/syntax-guide" target="_blank" rel="noreferrer"><?= t('Write your text in Markdown') ?></a></div> <div class="form-actions"> |