Fix #847 separate getFileList query from getFileListByTargetStatus

This commit is contained in:
Kijin Sung 2017-06-09 22:24:21 +09:00
parent 15bba27967
commit 3462778803
3 changed files with 57 additions and 22 deletions

View file

@ -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;