mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
issue 160 when document management,
do not get content in query. git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9358 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b4f21279f0
commit
cb18ff3064
2 changed files with 5 additions and 4 deletions
|
|
@ -1776,7 +1776,8 @@ class documentController extends document {
|
|||
|
||||
if(count($documentSrlList) > 0) {
|
||||
$oDocumentModel = &getModel('document');
|
||||
$documentList = $oDocumentModel->getDocuments($documentSrlList, $this->grant->is_admin);
|
||||
$columnList = array('document_srl', 'title', 'nick_name', 'status');
|
||||
$documentList = $oDocumentModel->getDocuments($documentSrlList, $this->grant->is_admin, false, $columnList);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -1808,4 +1809,4 @@ class documentController extends document {
|
|||
if(!$obj->status && $obj->is_secret != 'Y') $obj->status = $this->getConfigStatus('public');
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@
|
|||
/**
|
||||
* @brief Bringing multiple documents (or paging)
|
||||
**/
|
||||
function getDocuments($document_srls, $is_admin = false, $load_extra_vars=true) {
|
||||
function getDocuments($document_srls, $is_admin = false, $load_extra_vars=true, $columnList = array()) {
|
||||
if(is_array($document_srls)) {
|
||||
$list_count = count($document_srls);
|
||||
$document_srls = implode(',',$document_srls);
|
||||
|
|
@ -115,7 +115,7 @@
|
|||
$args->list_count = $list_count;
|
||||
$args->order_type = 'asc';
|
||||
|
||||
$output = executeQuery('document.getDocuments', $args);
|
||||
$output = executeQuery('document.getDocuments', $args, $columnList);
|
||||
$document_list = $output->data;
|
||||
if(!$document_list) return;
|
||||
if(!is_array($document_list)) $document_list = array($document_list);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue