From 3abd51f3060b14937cd57f606bfcad8658b544b4 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Fri, 10 Feb 2017 08:55:30 +0100 Subject: [PATCH] [Backport] Issue 4931: Tag Creation Caps Bug --- taiga/projects/tagging/services.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/taiga/projects/tagging/services.py b/taiga/projects/tagging/services.py index e281eaa5..78fd00b6 100644 --- a/taiga/projects/tagging/services.py +++ b/taiga/projects/tagging/services.py @@ -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: