Bug fix - tagManager was not available during post update.
This commit is contained in:
parent
6a01dc5d97
commit
9281d8dab1
@ -73,8 +73,8 @@ class AdminController extends Controller
|
|||||||
if ($request->getMethod() === 'POST') {
|
if ($request->getMethod() === 'POST') {
|
||||||
$form->bind($request);
|
$form->bind($request);
|
||||||
if ($form->isValid()) {
|
if ($form->isValid()) {
|
||||||
if (($tags = $form->get('tags')->getData()) != '') {
|
|
||||||
$tagManager = $this->get('fpn_tag.tag_manager');
|
$tagManager = $this->get('fpn_tag.tag_manager');
|
||||||
|
if (($tags = $form->get('tags')->getData()) != '') {
|
||||||
$tagNames = $tagManager->splitTagNames($tags);
|
$tagNames = $tagManager->splitTagNames($tags);
|
||||||
$tagList = $tagManager->loadOrCreateTags($tagNames);
|
$tagList = $tagManager->loadOrCreateTags($tagNames);
|
||||||
$tagManager->addTags($tagList, $post);
|
$tagManager->addTags($tagList, $post);
|
||||||
|
Loading…
Reference in New Issue
Block a user