Properly update article search index when editing
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 16 Jul 2020 08:40:38 +0000 (10:40 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 16 Jul 2020 08:41:41 +0000 (10:41 +0200)
see #3430

wcfsetup/install/files/lib/data/article/ArticleAction.class.php

index 0b0269ee6984c8e8c256965cc6fd42d04aaf36aa..63558c0cbde67487a1121e5f86e483eedc218c3c 100644 (file)
@@ -209,13 +209,13 @@ class ArticleAction extends AbstractDatabaseObjectAction {
                                        SearchIndexManager::getInstance()->set(
                                                'com.woltlab.wcf.article',
                                                $articleContent->articleContentID,
-                                               $articleContent->content,
-                                               $articleContent->title,
+                                               $content['content'] ?? $articleContent->content,
+                                               $content['title'] ?? $articleContent->title,
                                                $article->time,
                                                $article->userID,
                                                $article->username, 
                                                $languageID ?: null,
-                                               $articleContent->teaser
+                                               $content['teaser'] ?? $articleContent->teaser
                                        );
                                        
                                        // save embedded objects