mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 17:44:56 +00:00
fix indexing new folder
This commit is contained in:
parent
2d2375729e
commit
416568f1c4
|
@ -84,9 +84,9 @@ class SeedDMS_Controller_AddSubFolder extends SeedDMS_Controller_Common {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($fulltextservice && ($index = $fulltextservice->Indexer()) && $document) {
|
if($fulltextservice && ($index = $fulltextservice->Indexer()) && $subFolder) {
|
||||||
$idoc = $fulltextservice->IndexedDocument($subFolder);
|
$idoc = $fulltextservice->IndexedDocument($subFolder);
|
||||||
if(false !== $this->callHook('preIndexFolder', $document, $idoc)) {
|
if(false !== $this->callHook('preIndexFolder', $subFolder, $idoc)) {
|
||||||
$index->addDocument($idoc);
|
$index->addDocument($idoc);
|
||||||
$index->commit();
|
$index->commit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user