Skip to content

Commit

Permalink
Issue 4931:Tag Creation Caps Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
superalex committed Feb 10, 2017
1 parent d09dbcb commit 03d97f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions taiga/projects/tagging/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 03d97f6

Please sign in to comment.