mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-10 04:03:01 +09:00
content 위젯에서 휴지통으로 이동된 문서의 댓글, 비밀댓글이 표시되는 문제 수정
This commit is contained in:
parent
b37ffc27bb
commit
04ab022864
3 changed files with 15 additions and 1 deletions
|
|
@ -387,7 +387,8 @@ class commentModel extends comment
|
|||
{
|
||||
$args->module_srl = $obj->module_srl;
|
||||
}
|
||||
|
||||
|
||||
$args->is_secret = $obj->is_secret;
|
||||
$args->document_srl = $obj->document_srl;
|
||||
$args->list_count = $obj->list_count;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="status" var="status" pipe="and" />
|
||||
<condition operation="equal" column="is_secret" var="is_secret" pipe="and" />
|
||||
<condition operation="in" column="module_srl" var="module_srl" filter="number" pipe="and" />
|
||||
<condition operation="equal" column="document_srl" var="document_srl" filter="number" pipe="and" />
|
||||
</conditions>
|
||||
|
|
|
|||
|
|
@ -191,6 +191,12 @@ class content extends WidgetHandler
|
|||
$obj->module_srl = $args->module_srl;
|
||||
$obj->sort_index = $args->order_target;
|
||||
$obj->list_count = $args->list_count * $args->page_count;
|
||||
|
||||
if($args->show_secret != 'Y')
|
||||
{
|
||||
$obj->is_secret = 'N';
|
||||
}
|
||||
|
||||
// Get model object of the comment module and execute getCommentList() method
|
||||
$oCommentModel = getModel('comment');
|
||||
$output = $oCommentModel->getNewestCommentList($obj);
|
||||
|
|
@ -201,6 +207,12 @@ class content extends WidgetHandler
|
|||
|
||||
foreach($output as $key => $oComment)
|
||||
{
|
||||
$oDocument = getModel('document')->getDocument($oComment->get('document_srl'), false, false);
|
||||
if(!$oDocument->isExists() || $oDocument->isSecret() && $args->show_secret != 'Y')
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$attribute = $oComment->getObjectVars();
|
||||
$title = $oComment->getSummary($args->content_cut_size);
|
||||
$thumbnail = $oComment->getThumbnail($args->thumbnail_width,$args->thumbnail_height,$args->thumbnail_type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue