mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-11 14:53:15 +09:00
#222 검색시/ 정렬 변경시/ 분류 선택시에는 선택된 글의 제대로 된 페이지를 가져오는 코드를 동작하지 않도록 하여 사용자 입장에서 불편없도록 개선
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2750 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7b2ca28372
commit
2967f63665
1 changed files with 8 additions and 6 deletions
|
|
@ -113,12 +113,6 @@
|
|||
// 댓글에디터 설정
|
||||
$this->setCommentEditor(0, 100);
|
||||
|
||||
// 만약 document_srl은 있는데 page가 없다면 글만 호출된 경우 page를 구해서 세팅해주자..
|
||||
if($document_srl && !$page && ($oDocument->isExists()&&!$oDocument->isNotice()) && !Context::get('category') && !Context::get('search_keyword')) {
|
||||
$page = $oDocumentModel->getDocumentPage($document_srl, $this->module_srl, $this->list_count);
|
||||
Context::set('page', $page);
|
||||
}
|
||||
|
||||
// 목록을 구하기 위한 옵션
|
||||
$args->module_srl = $this->module_srl; ///< 현재 모듈의 module_srl
|
||||
$args->page = $page; ///< 페이지
|
||||
|
|
@ -146,6 +140,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
// 만약 document_srl은 있는데 page가 없다면 글만 호출된 경우 page를 구해서 세팅해주자..
|
||||
if($document_srl && ($oDocument->isExists()&&!$oDocument->isNotice()) && !$args->category_srl && !$args->search_keyword && $args->sort_index == 'list_order' && $args->order_type == 'asc') {
|
||||
$page = $oDocumentModel->getDocumentPage($document_srl, $this->module_srl, $this->list_count);
|
||||
Context::set('page', $page);
|
||||
$args->page = $page;
|
||||
}
|
||||
|
||||
|
||||
// 목록 구함, document->getDocumentList 에서 걍 알아서 다 해버리는 구조이다... (아.. 이거 나쁜 버릇인데.. ㅡ.ㅜ 어쩔수 없다)
|
||||
$output = $oDocumentModel->getDocumentList($args);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue