mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix uploaded_count remaining after comment is deleted
This commit is contained in:
parent
3f69e368da
commit
e9be06ef6b
2 changed files with 2 additions and 0 deletions
|
|
@ -1123,6 +1123,7 @@ class CommentController extends Comment
|
||||||
|
|
||||||
// Update
|
// Update
|
||||||
$obj->member_srl = 0;
|
$obj->member_srl = 0;
|
||||||
|
$obj->uploaded_count = 0;
|
||||||
unset($obj->last_update);
|
unset($obj->last_update);
|
||||||
$output = executeQuery('comment.updateCommentByDelete', $obj);
|
$output = executeQuery('comment.updateCommentByDelete', $obj);
|
||||||
if(!$output->toBool())
|
if(!$output->toBool())
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
<columns>
|
<columns>
|
||||||
<column name="member_srl" var="member_srl" />
|
<column name="member_srl" var="member_srl" />
|
||||||
<column name="content" var="content" notnull="notnull" />
|
<column name="content" var="content" notnull="notnull" />
|
||||||
|
<column name="uploaded_count" var="uploaded_count" />
|
||||||
<column name="last_update" var="last_update" default="curdate()" />
|
<column name="last_update" var="last_update" default="curdate()" />
|
||||||
<column name="status" var="status" default="1" />
|
<column name="status" var="status" default="1" />
|
||||||
</columns>
|
</columns>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue