forked from wallabag/wallabag
Split tags with commas from UI
This commit is contained in:
@ -32,10 +32,16 @@ class TagController extends Controller
|
|||||||
$em = $this->getDoctrine()->getManager();
|
$em = $this->getDoctrine()->getManager();
|
||||||
|
|
||||||
if (is_null($existingTag)) {
|
if (is_null($existingTag)) {
|
||||||
$entry->addTag($tag);
|
$this->get('wallabag_core.content_proxy')->assignTagsToEntry(
|
||||||
|
$entry,
|
||||||
|
$tag
|
||||||
|
);
|
||||||
$em->persist($tag);
|
$em->persist($tag);
|
||||||
} elseif (!$existingTag->hasEntry($entry)) {
|
} elseif (!$existingTag->hasEntry($entry)) {
|
||||||
$entry->addTag($existingTag);
|
$this->get('wallabag_core.content_proxy')->assignTagsToEntry(
|
||||||
|
$entry,
|
||||||
|
$existingTag
|
||||||
|
);
|
||||||
$em->persist($existingTag);
|
$em->persist($existingTag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user