Skip to content

Commit a558728

Browse files
authored
Invalid delete of all content articles from smart search index (#41288)
1 parent fba14cf commit a558728

File tree

1 file changed

+4
-1
lines changed
  • administrator/components/com_finder/src/Indexer

1 file changed

+4
-1
lines changed

administrator/components/com_finder/src/Indexer/Adapter.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ protected function getListQuery($query = null)
634634
*
635635
* @param integer $id The plugin ID
636636
*
637-
* @return string The plugin type
637+
* @return string|null The plugin type
638638
*
639639
* @since 2.5
640640
*/
@@ -644,6 +644,7 @@ protected function getPluginType($id)
644644
$query = $this->db->getQuery(true)
645645
->select($this->db->quoteName('element'))
646646
->from($this->db->quoteName('#__extensions'))
647+
->where($this->db->quoteName('folder') . ' = ' . $this->db->quote('finder'))
647648
->where($this->db->quoteName('extension_id') . ' = ' . (int) $id);
648649
$this->db->setQuery($query);
649650

@@ -878,6 +879,8 @@ protected function pluginDisable($pks)
878879
foreach ($items as $item) {
879880
$this->remove($item);
880881
}
882+
// Stop processing plugins
883+
break;
881884
}
882885
}
883886
}

0 commit comments

Comments
 (0)