diff --git a/modules/file/file.admin.model.php b/modules/file/file.admin.model.php index c10675fc4..1bb074c63 100644 --- a/modules/file/file.admin.model.php +++ b/modules/file/file.admin.model.php @@ -84,14 +84,12 @@ class fileAdminModel extends file { $args->document_status = array('PUBLIC'); $args->comment_is_secret = array('N'); + $output = executeQuery('file.getFileListByTargetStatus', $args, $columnList); } else { - $args->document_status = array('PUBLIC', 'PRIVATE', 'SECRET', 'TEMP'); - $args->comment_is_secret = array('Y', 'N'); + $output = executeQuery('file.getFileList', $args, $columnList); } - // Execute the file.getFileList query - $output = executeQuery('file.getFileList', $args, $columnList); // Return if no result or an error occurs if(!$output->toBool()||!count($output->data)) return $output; diff --git a/modules/file/queries/getFileList.xml b/modules/file/queries/getFileList.xml index 7092da25f..023366f29 100644 --- a/modules/file/queries/getFileList.xml +++ b/modules/file/queries/getFileList.xml @@ -6,16 +6,6 @@ - - - - -
- - - - -
@@ -26,14 +16,6 @@ - - - - - - - - diff --git a/modules/file/queries/getFileListByTargetStatus.xml b/modules/file/queries/getFileListByTargetStatus.xml new file mode 100644 index 000000000..7092da25f --- /dev/null +++ b/modules/file/queries/getFileListByTargetStatus.xml @@ -0,0 +1,55 @@ + + + +
+ + + +
+ + + + +
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +