fix indexing new folder

This commit is contained in:
Uwe Steinmann 2020-12-14 08:02:02 +01:00
parent 2d2375729e
commit 416568f1c4

View File

@ -84,9 +84,9 @@ class SeedDMS_Controller_AddSubFolder extends SeedDMS_Controller_Common {
return false;
}
if($fulltextservice && ($index = $fulltextservice->Indexer()) && $document) {
if($fulltextservice && ($index = $fulltextservice->Indexer()) && $subFolder) {
$idoc = $fulltextservice->IndexedDocument($subFolder);
if(false !== $this->callHook('preIndexFolder', $document, $idoc)) {
if(false !== $this->callHook('preIndexFolder', $subFolder, $idoc)) {
$index->addDocument($idoc);
$index->commit();
}