mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +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;
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user