Do not show deleted files in documents
This commit is contained in:
parent
2a0f345c5c
commit
80cba2f5d7
@ -27,7 +27,17 @@ namespace OCA\Documents;
|
||||
class Storage {
|
||||
|
||||
public static function getDocuments() {
|
||||
$list=\OCP\Files::searchByMime('application/vnd.oasis.opendocument.text');
|
||||
$list = array_filter(
|
||||
\OCP\Files::searchByMime('application/vnd.oasis.opendocument.text'),
|
||||
function($item){
|
||||
//filter Deleted
|
||||
if (strpos($item['path'], '_trashbin')===0){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
);
|
||||
|
||||
return $list;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user