mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Add new trigger points in document.copyDocumentModule to replace old, nonstandard "add" name
This commit is contained in:
parent
eb2883b8cb
commit
6e913fcb3a
1 changed files with 2 additions and 0 deletions
|
|
@ -590,6 +590,7 @@ class DocumentAdminController extends Document
|
|||
$args->source = $document;
|
||||
$args->copied = $copy;
|
||||
ModuleHandler::triggerCall('document.copyDocumentModule', 'add', $args);
|
||||
ModuleHandler::triggerCall('document.copyDocumentModule.each', 'before', $args);
|
||||
|
||||
// insert a copied document
|
||||
$output = $oDocumentController->insertDocument($copy, true, true);
|
||||
|
|
@ -608,6 +609,7 @@ class DocumentAdminController extends Document
|
|||
}
|
||||
}
|
||||
|
||||
ModuleHandler::triggerCall('document.copyDocumentModule.each', 'after', $args);
|
||||
$copied_srls[$document->document_srl] = $copy->document_srl;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue