Link tags after adding them through autosuggest.

This commit is contained in:
2019-03-09 13:22:32 +01:00
parent 20db3561cf
commit 05c48be785
3 changed files with 11 additions and 5 deletions

View File

@@ -335,8 +335,8 @@ class Tag
if (!is_array($tokens))
$tokens = explode(' ', $tokens);
return Registry::get('db')->queryPair('
SELECT id_tag, tag
return Registry::get('db')->queryPairs('
SELECT id_tag, tag, slug
FROM tags
WHERE LOWER(tag) LIKE {string:tokens} AND
kind = {string:person}