diff --git a/modules/file/file.admin.view.php b/modules/file/file.admin.view.php index c1e79603e..f1b371e74 100644 --- a/modules/file/file.admin.view.php +++ b/modules/file/file.admin.view.php @@ -127,9 +127,9 @@ class FileAdminView extends File } } - if (in_array($file->upload_target_type, ['doc', 'com'])) + if (in_array($file->upload_target_type, ['doc', 'com', 'ev:doc', 'ev:com'])) { - $var = $file->upload_target_type . '_srls'; + $var = str_replace('ev:', '', $file->upload_target_type) . '_srls'; if (!in_array($target_srl, $$var)) { $$var[] = $target_srl; @@ -187,7 +187,7 @@ class FileAdminView extends File foreach($file_list as $srl => $file) { - if($file->upload_target_type == 'com') + if($file->upload_target_type === 'com' || $file->upload_target_type === 'ev:com') { $file_list[$srl]->target_document_srl = $comment_list[$file->upload_target_srl]->document_srl; } diff --git a/modules/file/tpl/file_list.html b/modules/file/tpl/file_list.html index 317349770..a4ca4a1d3 100644 --- a/modules/file/tpl/file_list.html +++ b/modules/file/tpl/file_list.html @@ -57,12 +57,12 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}'; - + {@ $document_srl = $val->target_document_srl} {@ $move_uri = getUrl('', 'document_srl', $document_srl).'#comment_'.$val->upload_target_srl} - + {@ $document_srl = $val->upload_target_srl} - {@ $move_uri = getUrl('', 'document_srl', $document_srl)} + {@ $move_uri = getUrl('', 'mid', $module_list[$val->module_srl]->mid, 'document_srl', $document_srl)} {@ $cur_upload_target_srl = $val->upload_target_srl}