mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
글 삭제시 카테고리가 있으면 해당 카테고리의 글 갯수를 전체 글갯수를 새로 구해서 세팅하도록 변경
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1902 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c16c979640
commit
7935a58330
1 changed files with 2 additions and 2 deletions
|
|
@ -254,13 +254,13 @@
|
|||
$oTagController->deleteTag($document_srl, $is_admin);
|
||||
|
||||
// 첨부 파일 삭제
|
||||
if($document->uploaded_count) {
|
||||
if($oDocument->hasUploadedFiles()) {
|
||||
$oFileController = &getController('file');
|
||||
$oFileController->deleteFiles($document_srl);
|
||||
}
|
||||
|
||||
// 카테고리가 있으면 카테고리 정보 변경
|
||||
if($document->category_srl) $this->updateCategoryCount($oDocument->get('category_srl'));
|
||||
if($oDocument->get('category_srl')) $this->updateCategoryCount($oDocument->get('category_srl'));
|
||||
|
||||
// commit
|
||||
$oDB->commit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue