문서 이동 / 첨부 파일 삭제 기능 개선

This commit is contained in:
conory 2018-01-24 21:23:00 +09:00
parent b180270e08
commit 3d2ade4aa1
14 changed files with 253 additions and 234 deletions

View file

@ -114,6 +114,11 @@ class comment extends ModuleObject
return true;
}
if(!$oModuleModel->getTrigger('document.moveDocumentModule', 'comment', 'controller', 'triggeMoveDocumentModule', 'after'))
{
return true;
}
return FALSE;
}
@ -204,6 +209,11 @@ class comment extends ModuleObject
{
$oDB->addIndex('comments', 'idx_nick_name', array('nick_name'));
}
if(!$oModuleModel->getTrigger('document.moveDocumentModule', 'comment', 'controller', 'triggeMoveDocumentModule', 'after'))
{
$oModuleController->insertTrigger('document.moveDocumentModule', 'comment', 'controller', 'triggeMoveDocumentModule', 'after');
}
}
/**

View file

@ -1726,7 +1726,13 @@ class commentController extends comment
$this->add('comment_list', $commentList);
}
function triggeMoveDocumentModule($obj)
{
executeQuery('comment.updateCommentModule', $obj);
executeQuery('comment.updateCommentListModule', $obj);
}
function triggerCopyModule(&$obj)
{
$oModuleModel = getModel('module');
@ -1741,7 +1747,6 @@ class commentController extends comment
}
}
}
}
/* End of file comment.controller.php */
/* Location: ./modules/comment/comment.controller.php */