mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 11:31:05 +00:00
Split tags with commas from UI
This commit is contained in:
parent
439b36323e
commit
5a4ee4ae0f
1 changed files with 8 additions and 2 deletions
|
@ -32,10 +32,16 @@ class TagController extends Controller
|
|||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
if (is_null($existingTag)) {
|
||||
$entry->addTag($tag);
|
||||
$this->get('wallabag_core.content_proxy')->assignTagsToEntry(
|
||||
$entry,
|
||||
$tag
|
||||
);
|
||||
$em->persist($tag);
|
||||
} elseif (!$existingTag->hasEntry($entry)) {
|
||||
$entry->addTag($existingTag);
|
||||
$this->get('wallabag_core.content_proxy')->assignTagsToEntry(
|
||||
$entry,
|
||||
$existingTag
|
||||
);
|
||||
$em->persist($existingTag);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue