From 9877b70ef97417a47a3b50d8af43a9dbde11d476 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sun, 22 Mar 2015 09:38:28 +0100 Subject: [PATCH] Convert all tags to lowercase. Fixes #41 --- .../Bundle/CalciferBundle/Controller/EventController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hackspace/Bundle/CalciferBundle/Controller/EventController.php b/src/Hackspace/Bundle/CalciferBundle/Controller/EventController.php index 9e5723f..320c931 100755 --- a/src/Hackspace/Bundle/CalciferBundle/Controller/EventController.php +++ b/src/Hackspace/Bundle/CalciferBundle/Controller/EventController.php @@ -351,7 +351,7 @@ class EventController extends Controller $tags = $request->get('tags'); if (strlen($tags) > 0) { - $tags = explode(',', $tags); + $tags = explode(',', strtolower($tags)); $em = $this->getDoctrine()->getManager(); $repo = $em->getRepository('CalciferBundle:Tag'); $entity->clearTags();