From e7430d42ba2415fb39e638eb40396e1b8a5f18b9 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Wed, 20 Jan 2016 13:15:05 +0100 Subject: [PATCH] prevent tag versioning error --- app/coffee/modules/common/tags.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/coffee/modules/common/tags.coffee b/app/coffee/modules/common/tags.coffee index cb503aa1..0b8c8dfb 100644 --- a/app/coffee/modules/common/tags.coffee +++ b/app/coffee/modules/common/tags.coffee @@ -286,10 +286,11 @@ TagLineDirective = ($rootScope, $repo, $rs, $confirm, $qqueue, $template, $compi $confirm.notify("error") model.revert() $model.$setViewValue(model) - $repo.save(model).then(onSuccess, onError) hideSaveButton() + return $repo.save(model).then(onSuccess, onError) + deleteValue = $qqueue.bindAdd (value) -> value = trim(value.toLowerCase()) return if value.length == 0