#18973659 document trash/ restore 시 트리거 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7553 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2010-06-28 05:38:55 +00:00
parent 7cd5b7dea7
commit 248373bc2c
2 changed files with 20 additions and 1 deletions

View file

@ -529,6 +529,15 @@
executeQuery('file.updateFileValid', $args);
}
// trigger 호출 (after)
if($output->toBool()) {
$trigger_output = ModuleHandler::triggerCall('document.restoreTrash', 'after', $document_args);
if(!$trigger_output->toBool()) {
$oDB->rollback();
return $trigger_output;
}
}
// commit
$oDB->commit();
return $output;