mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
#486 게시글 다수 선택시 정상적으로 선택되지 않는 문제 해결
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4353 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e81b6af95a
commit
de22070cee
3 changed files with 28 additions and 19 deletions
|
|
@ -40,13 +40,14 @@
|
|||
* @brief 관리자가 글 선택시 세션에 담음
|
||||
**/
|
||||
function procDocumentAdminAddCart() {
|
||||
$document_srl = Context::get('srl');
|
||||
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument($document_srl);
|
||||
if(!$oDocument->isExists()) return;
|
||||
|
||||
$oDocument->doCart();
|
||||
$document_srls = explode(',',Context::get('srls'));
|
||||
$cnt = count($document_srls);
|
||||
for($i=0;$i<$cnt;$i++) {
|
||||
$document_srl = (int)trim($document_srls[$i]);
|
||||
if(!$document_srls) continue;
|
||||
if($_SESSION['document_management'][$document_srl]) unset($_SESSION['document_management'][$document_srl]);
|
||||
else $_SESSION['document_management'][$document_srl] = true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue