index document if max size is 0

This commit is contained in:
Uwe Steinmann 2021-12-05 07:52:00 +01:00
parent f263ec1ac2
commit 6fdd3ea39d

View File

@ -95,7 +95,7 @@ class SeedDMS_FulltextService {
*/
public function IndexedDocument($object, $forceupdate=false) {
if($object->isType('document'))
$nocontent = ($object->getLatestContent()->getFileSize() > $this->maxsize) && !$forceupdate;
$nocontent = $object->getLatestContent()->getFileSize() > $this->maxsize && $this->maxsize && !$forceupdate;
else
$nocontent = true;
return new $this->services[0]['IndexedDocument']($object->getDMS(), $object, $this->conversionmgr ? $this->conversionmgr : $this->converters, $nocontent, $this->cmdtimeout);