mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Fix #847 separate getFileList query from getFileListByTargetStatus
This commit is contained in:
parent
15bba27967
commit
3462778803
3 changed files with 57 additions and 22 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue