Do not create empty tags and remove tags only when necessary

This commit is contained in:
Frederic Guillot
2016-07-02 11:50:32 -04:00
parent 6db72521ea
commit 853189a43f
6 changed files with 325 additions and 316 deletions

View File

@@ -70,6 +70,7 @@ class TaskHelper extends Base
$options = $this->tagModel->getAssignableList($project['id']);
$html = $this->helper->form->label(t('Tags'), 'tags[]');
$html .= '<input type="hidden" name="tags[]" value="">';
$html .= '<select name="tags[]" id="form-tags" class="tag-autocomplete" multiple>';
foreach ($options as $tag) {