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') {
|
||||
$form->bind($request);
|
||||
if ($form->isValid()) {
|
||||
$tagManager = $this->get('fpn_tag.tag_manager');
|
||||
if (($tags = $form->get('tags')->getData()) != '') {
|
||||
$tagManager = $this->get('fpn_tag.tag_manager');
|
||||
$tagNames = $tagManager->splitTagNames($tags);
|
||||
$tagList = $tagManager->loadOrCreateTags($tagNames);
|
||||
$tagManager->addTags($tagList, $post);
|
||||
|
Loading…
Reference in New Issue
Block a user