diff --git a/modules/file/file.controller.php b/modules/file/file.controller.php index fb8c9a076..3bdd7c785 100644 --- a/modules/file/file.controller.php +++ b/modules/file/file.controller.php @@ -1971,8 +1971,16 @@ class FileController extends File function triggerMoveDocument($obj) { $obj->upload_target_srls = $obj->document_srls; - executeQuery('file.updateFileModule', $obj); - executeQuery('file.updateFileModuleComment', $obj); + $output = executeQuery('file.updateFileModule', $obj); + if (!$output->toBool()) + { + return $output; + } + $output = executeQuery('file.updateFileModuleComment', $obj); + if (!$output->toBool()) + { + return $output; + } } function triggerAddCopyDocument(&$obj) diff --git a/modules/file/queries/updateFileModuleComment.xml b/modules/file/queries/updateFileModuleComment.xml index f053a1d4b..52c4e4b47 100644 --- a/modules/file/queries/updateFileModuleComment.xml +++ b/modules/file/queries/updateFileModuleComment.xml @@ -1,13 +1,13 @@ - -
+
+
- + - - + +