휴지통에서 댓글 복원할 수 있는 메서드 추가.

This commit is contained in:
BJRambo 2017-03-07 07:38:43 +09:00
parent b040372133
commit 7b4c49d7e9
2 changed files with 55 additions and 1 deletions

View file

@ -467,7 +467,18 @@ class commentAdminController extends comment
$obj->module_srl = $originObject->module_srl;
$oCommentController = getController('comment');
$output = $oCommentController->insertComment($obj, true);
$oCommentModel = getModel('comment');
$oComment = $oCommentModel->getComment($originObject->comment_srl);
if($oComment)
{
$output = $oCommentController->updateCommentByRestore();
}
else
{
$output = $oCommentController->insertComment($obj, true);
}
return $output;
}