mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
문서 이동 / 첨부 파일 삭제 기능 개선
This commit is contained in:
parent
b180270e08
commit
3d2ade4aa1
14 changed files with 253 additions and 234 deletions
|
|
@ -43,6 +43,7 @@ class tag extends ModuleObject
|
|||
if(!$oModuleModel->getTrigger('module.deleteModule', 'tag', 'controller', 'triggerDeleteModuleTags', 'after')) return true;
|
||||
// tag in the index column of the table tag
|
||||
if(!$oDB->isIndexExists("tags","idx_tag")) return true;
|
||||
if(!$oModuleModel->getTrigger('document.moveDocumentModule', 'tag', 'controller', 'triggeMoveDocumentModule', 'after')) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
@ -76,6 +77,11 @@ class tag extends ModuleObject
|
|||
// tag in the index column of the table tag
|
||||
if(!$oDB->isIndexExists("tags","idx_tag"))
|
||||
$oDB->addIndex("tags","idx_tag", array("document_srl","tag"));
|
||||
|
||||
if(!$oModuleModel->getTrigger('document.moveDocumentModule', 'tag', 'controller', 'triggeMoveDocumentModule', 'after'))
|
||||
{
|
||||
$oModuleController->insertTrigger('document.moveDocumentModule', 'tag', 'controller', 'triggeMoveDocumentModule', 'after');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -94,6 +94,11 @@ class tagController extends tag
|
|||
$oTagController = getAdminController('tag');
|
||||
return $oTagController->deleteModuleTags($module_srl);
|
||||
}
|
||||
|
||||
function triggeMoveDocumentModule($obj)
|
||||
{
|
||||
executeQuery('tag.updateTagModule', $obj);
|
||||
}
|
||||
}
|
||||
/* End of file tag.controller.php */
|
||||
/* Location: ./modules/tag/tag.controller.php */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue