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

wcfsetup/install/files/lib/data/page/PageAction.class.php

index 993abd6f012f5eae82caadfc4d3272904309a2d9..3645bce8d6b622c2e3e08f60de93a00c59ab136c 100644 (file)
@@ -209,8 +209,8 @@ class PageAction extends AbstractDatabaseObjectAction implements ISearchAction,
                                                SearchIndexManager::getInstance()->set(
                                                        'com.woltlab.wcf.page',
                                                        $pageContent->pageContentID,
-                                                       $pageContent->content,
-                                                       $pageContent->title,
+                                                       $content['title'] ?? $pageContent->content,
+                                                       $content['title'] ?? $pageContent->title,
                                                        0,
                                                        null,
                                                        '',