mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +00:00
show docs in root folder of document chooser
This commit is contained in:
parent
5bc915f487
commit
2fceade3a2
|
@ -1247,6 +1247,14 @@ function clearFilename<?php print $formName ?>() {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$node['children'] = jqtree($path, $folder, $this->params['user'], $accessmode, $showdocs, $expandtree, $orderby);
|
$node['children'] = jqtree($path, $folder, $this->params['user'], $accessmode, $showdocs, $expandtree, $orderby);
|
||||||
|
if($showdocs) {
|
||||||
|
$documents = $folder->getDocuments($orderby);
|
||||||
|
$documents = SeedDMS_Core_DMS::filterAccess($documents, $this->params['user'], $accessmode);
|
||||||
|
foreach($documents as $document) {
|
||||||
|
$node2 = array('label'=>$document->getName(), 'id'=>$document->getID(), 'load_on_demand'=>false, 'is_folder'=>false);
|
||||||
|
$node['children'][] = $node2;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* Nasty hack to remove the highest folder */
|
/* Nasty hack to remove the highest folder */
|
||||||
if(isset($this->params['remove_root_from_tree']) && $this->params['remove_root_from_tree']) {
|
if(isset($this->params['remove_root_from_tree']) && $this->params['remove_root_from_tree']) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user