Description should not be mandatory, see #400
This commit is contained in:
@@ -70,7 +70,6 @@ class TaskValidator extends Base
|
|||||||
{
|
{
|
||||||
$rules = array(
|
$rules = array(
|
||||||
new Validators\Required('id', t('The id is required')),
|
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()));
|
$v = new Validator($values, array_merge($rules, $this->commonValidationRules()));
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<?= Helper\form_csrf() ?>
|
<?= Helper\form_csrf() ?>
|
||||||
|
|
||||||
<?= Helper\form_hidden('id', $values) ?>
|
<?= 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-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">
|
<div class="form-actions">
|
||||||
|
|||||||
Reference in New Issue
Block a user