mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 08:12:17 +09:00
최근 이미지 위젯의 결과가 cubrid에서 나오지 않던 문제 해결. group by 절의 잘못된 쿼리 때문임. by 서상욱님
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3612 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5973f30f7f
commit
d725c15649
3 changed files with 12 additions and 9 deletions
|
|
@ -71,17 +71,20 @@
|
|||
|
||||
// 정해진 모듈에서 문서별 파일 목록을 구함
|
||||
$files_output = executeQueryArray("file.getOneFileInDocument", $obj);
|
||||
$files_count = count($files_output->data);
|
||||
|
||||
$document_srl_list = array();
|
||||
for($i=0;$i<$files_count;$i++) $document_srl_list[] = $files_output->data[$i]->document_srl;
|
||||
|
||||
$oDocumentModel = &getModel('document');
|
||||
if(count($files_output->data)) {
|
||||
foreach($files_output->data as $key => $val) {
|
||||
$oDocument = null;
|
||||
$oDocument = $oDocumentModel->getDocument();
|
||||
$oDocument->setAttribute($val);
|
||||
$document_list[] = $oDocument;
|
||||
}
|
||||
$tmp_document_list = $oDocumentModel->getDocuments($document_srl_list);
|
||||
$document_list = array();
|
||||
if(count($tmp_document_list)) {
|
||||
foreach($tmp_document_list as $val) $document_list[] = $val;
|
||||
}
|
||||
|
||||
$document_count = count($document_list);
|
||||
|
||||
$total_count = $widget_info->rows_list_count * $widget_info->cols_list_count;
|
||||
for($i=$document_count;$i<$total_count;$i++) $document_list[] = new DocumentItem();
|
||||
$widget_info->document_list = $document_list;
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@
|
|||
<!--@end-->
|
||||
</div>
|
||||
|
||||
<!--@if($widget_info->module_name)-->
|
||||
<!--@if($widget_info->module_name && $widget_info->title)-->
|
||||
<a href="{getUrl('','mid',$widget_info->module_name)}" class="more">more</a>
|
||||
<!--@end-->
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue