Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2024-03-23 11:57:58 +01:00
commit 6a7d596806

View File

@ -122,7 +122,7 @@ switch($command) {
foreach($hits['docs'] as $hit) { foreach($hits['docs'] as $hit) {
if($hit->getAccessMode($user, 'search') >= M_READ) { if($hit->getAccessMode($user, 'search') >= M_READ) {
if($hit->getLatestContent()) { if($hit->getLatestContent()) {
//$result[] = $hit->getID().'#'.$hit->getName(); // $result[] = $hit->getID().'#'.$hit->getName();
$result[] = array('type'=>'D', 'id'=>$hit->getId(), 'name'=>htmlspecialchars($hit->getName()), 'path'=>htmlspecialchars($hit->getParent()->getFolderPathPlain(true, '/'))); $result[] = array('type'=>'D', 'id'=>$hit->getId(), 'name'=>htmlspecialchars($hit->getName()), 'path'=>htmlspecialchars($hit->getParent()->getFolderPathPlain(true, '/')));
} }
} }