Permalink
Browse files

Avoid duplicate entry error when you have tags like jquery / jQuery. …

…TagManger now go a case insensitive comparaison of tag name
  • Loading branch information...
1 parent dac3048 commit a487e899c21410b6ed7dac12ba9c606e8817cf79 @ternel ternel committed Jul 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/DoctrineExtensions/Taggable/TagManager.php
@@ -128,7 +128,7 @@ public function loadOrCreateTags(array $names)
$loadedNames[] = $tag->getName();
}
- $missingNames = array_diff($names, $loadedNames);
+ $missingNames = array_udiff($names, $loadedNames, 'strcasecmp');
if (sizeof($missingNames)) {
foreach ($missingNames as $name) {
$tag = $this->createTag($name);

0 comments on commit a487e89

Please sign in to comment.