diff --git a/app/Template/column/create.php b/app/Template/column/create.php index 034e948c1..1a91ee0b6 100644 --- a/app/Template/column/create.php +++ b/app/Template/column/create.php @@ -8,7 +8,7 @@ = $this->form->text('title', $values, $errors, array('autofocus', 'required', 'maxlength="191"', 'tabindex="1"')) ?> = $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"', 'min="0"')) ?> = $this->form->checkbox('hide_in_dashboard', t('Hide tasks in this column in the dashboard'), 1, false, '', array('tabindex' => 3)) ?> diff --git a/app/Template/column/edit.php b/app/Template/column/edit.php index def0f2999..c5a3ae14a 100644 --- a/app/Template/column/edit.php +++ b/app/Template/column/edit.php @@ -9,7 +9,7 @@ = $this->form->text('title', $values, $errors, array('autofocus', 'required', 'maxlength="191"')) ?> = $this->form->label(t('Task limit'), 'task_limit') ?> - = $this->form->number('task_limit', $values, $errors) ?> + = $this->form->number('task_limit', $values, $errors, array('min="0"')) ?> = $this->form->checkbox('hide_in_dashboard', t('Hide tasks in this column in the dashboard'), 1, $values['hide_in_dashboard'] == 1) ?> diff --git a/app/Template/project_creation/create.php b/app/Template/project_creation/create.php index a7619ee88..404ac1efa 100644 --- a/app/Template/project_creation/create.php +++ b/app/Template/project_creation/create.php @@ -17,7 +17,7 @@ = $this->form->checkbox('per_swimlane_task_limits', t('Column task limits apply to each swimlane individually'), 1, false) ?> = $this->form->label(t('Task limit'), 'task_limit') ?> - = $this->form->number('task_limit', $values, $errors) ?> + = $this->form->number('task_limit', $values, $errors, array('min="0"')) ?> 1): ?> = $this->form->label(t('Create from another project'), 'src_project_id') ?> diff --git a/app/Template/project_edit/show.php b/app/Template/project_edit/show.php index be849cce9..6fe32f851 100644 --- a/app/Template/project_edit/show.php +++ b/app/Template/project_edit/show.php @@ -30,7 +30,7 @@ = $this->form->checkbox('per_swimlane_task_limits', t('Task limits apply to each swimlane individually'), 1, $project['per_swimlane_task_limits'] == 1, '', array('tabindex' => 5)) ?> = $this->form->label(t('Task limit'), 'task_limit') ?> - = $this->form->number('task_limit', $values, $errors, array('tabindex' => 6)) ?> + = $this->form->number('task_limit', $values, $errors, array('tabindex' => 6, 'min="0"')) ?>