mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
#1973 보완 - 대댓글이 있을 때만 자리를 남기도록 설정한 경우, 대댓글이 없는 댓글은 삭제되지 않는 문제 수정
This commit is contained in:
parent
f81f7f565d
commit
170f7f95b9
1 changed files with 10 additions and 5 deletions
|
|
@ -252,11 +252,16 @@ class commentAdminController extends comment
|
|||
if(count($childs) > 0)
|
||||
{
|
||||
$output = $oCommentController->updateCommentByDelete($comment, true);
|
||||
if(!$output->toBool() && $output->error !== -2)
|
||||
{
|
||||
$oDB->rollback();
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$output = $oCommentController->deleteComment($comment_srl, true, toBool($isTrash));
|
||||
}
|
||||
|
||||
if(!$output->toBool() && $output->error !== -2)
|
||||
{
|
||||
$oDB->rollback();
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue