휴지통에서 댓글 복원시 현재 날짜로 작성날짜가 복원되는 문제수정

This commit is contained in:
conory 2018-10-25 20:03:17 +09:00
parent 00ec48e108
commit 4cb447f5bf

View file

@ -425,33 +425,18 @@ class commentAdminController extends comment
{
$originObject = (object) $originObject;
}
$obj = new stdClass();
$obj->document_srl = $originObject->document_srl;
$obj->comment_srl = $originObject->comment_srl;
$obj->parent_srl = $originObject->parent_srl;
$obj->content = $originObject->content;
$obj->password = $originObject->password;
$obj->nick_name = $originObject->nick_name;
$obj->member_srl = $originObject->member_srl;
$obj->email_address = $originObject->email_address;
$obj->homepage = $originObject->homepage;
$obj->is_secret = $originObject->is_secret;
$obj->notify_message = $originObject->notify_message;
$obj->module_srl = $originObject->module_srl;
$oCommentController = getController('comment');
$oCommentModel = getModel('comment');
$oComment = $oCommentModel->getComment($originObject->comment_srl);
if($oComment->isExists())
{
$output = $oCommentController->updateCommentByRestore($obj);
$output = $oCommentController->updateCommentByRestore($originObject);
}
else
{
$output = $oCommentController->insertComment($obj, true);
$output = $oCommentController->insertComment($originObject, true);
}
return $output;