Merge pull request #932 from prestalab/patch-1
// FIX: tags with UTF-8 chars
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ class TagCore extends ObjectModel
|
|||||||
{
|
{
|
||||||
if (!Validate::isGenericName($tag))
|
if (!Validate::isGenericName($tag))
|
||||||
return false;
|
return false;
|
||||||
$tag = trim(substr($tag, 0, self::$definition['fields']['name']['size']));
|
$tag = trim(Tools::substr($tag, 0, self::$definition['fields']['name']['size']));
|
||||||
$tag_obj = new Tag(null, $tag, (int)$id_lang);
|
$tag_obj = new Tag(null, $tag, (int)$id_lang);
|
||||||
|
|
||||||
/* Tag does not exist in database */
|
/* Tag does not exist in database */
|
||||||
|
|||||||
Reference in New Issue
Block a user