Merge pull request #936 from taigaio/issue/4931/tag-creation-caps-bug

Issue 4931:Tag Creation Caps Bug
remotes/origin/github-import
David Barragán Merino 2017-02-13 11:10:23 +00:00 committed by GitHub
commit e93aff73e7
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,7 @@ def create_tag(project, tag, color):
def edit_tag(project, from_tag, to_tag, color):
to_tag = to_tag.lower()
sql = """
UPDATE userstories_userstory
SET tags = array_distinct(array_replace(tags, %(from_tag)s, %(to_tag)s))
@ -64,6 +65,7 @@ def edit_tag(project, from_tag, to_tag, color):
def rename_tag(project, from_tag, to_tag, **kwargs):
# Kwargs can have a color parameter
update_color = "color" in kwargs
to_tag = to_tag.lower()
if update_color:
color = kwargs.get("color")
else: