From 107cec82aad77f6b927a367bbd2123e9bd6c5fc1 Mon Sep 17 00:00:00 2001 From: mokaddem Date: Tue, 6 Oct 2020 14:12:11 +0200 Subject: [PATCH] fix: [tags:attachTagToObject] Respect case when searching tags. --- app/Controller/TagsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controller/TagsController.php b/app/Controller/TagsController.php index b2d4b5936..c510adb62 100644 --- a/app/Controller/TagsController.php +++ b/app/Controller/TagsController.php @@ -924,7 +924,7 @@ class TagsController extends AppController if (is_numeric($tag)) { $conditions = array('Tag.id' => $tag); } else { - $conditions = array('LOWER(Tag.name) LIKE' => trim($tag)); + $conditions = array('Tag.name LIKE' => trim($tag)); } if (empty($local)) { if (!empty($this->request->data['local'])) {