Version 5.0.13
This commit is contained in:
1 parent
b89858b2ff
commit
5efe744c5f
1407 files changed
+69690
-30177
No files matched your search
@@ -220,6 +220,7 @@ class topic extends Controller
|
||||
$fakeRecord->$titleField = $this->topic->mapped('title');
|
||||
$fakeRecord->$contentField = $this->topic->content();
|
||||
$fakeRecord->category_id = Request::i()->category_id;
|
||||
Request::i()->tags = $this->topic->tags();
|
||||
|
||||
if( $fakeRecord->_forum_record AND $fakeRecord->_forum_comments )
|
||||
{
|
||||
@@ -322,6 +323,12 @@ class topic extends Controller
|
||||
$obj->rebuildFirstAndLastCommentData();
|
||||
}
|
||||
|
||||
/* Remove tags from the original topic, so that we don't have duplicates on the tag page */
|
||||
$this->topic->setTags( [] );
|
||||
|
||||
/* Now we want to update the original topic in case we made any changes */
|
||||
$record->syncTopic();
|
||||
|
||||
try
|
||||
{
|
||||
/* If the database is on a page, go to the record */
|
||||
|
||||
Reference in new issue
Block a user