Fix incorrect redirect when loading saved document from another module #2659

This commit is contained in:
Kijin Sung 2026-01-28 21:04:12 +09:00
parent f051b58e09
commit 70a25057f0
2 changed files with 11 additions and 4 deletions

View file

@ -1580,9 +1580,10 @@ function doDocumentLoad(obj) {
*
* @param int document_srl
* @param string module
* @param string mid
* @return void
*/
function doDocumentSelect(document_srl, module) {
function doDocumentSelect(document_srl, module, mid) {
if (!opener) {
window.close();
return;
@ -1590,6 +1591,9 @@ function doDocumentSelect(document_srl, module) {
if (module === undefined) {
module = 'document';
}
if (mid === undefined) {
mid = current_mid;
}
// 게시글을 가져와서 등록하기
if (module === 'page') {
@ -1602,7 +1606,7 @@ function doDocumentSelect(document_srl, module) {
}
opener.location.href = url;
} else {
opener.location.href = opener.current_url.setQuery('act', 'dispBoardWrite').setQuery('document_srl', document_srl);
opener.location.href = opener.current_url.setQuery('mid', mid).setQuery('act', 'dispBoardWrite').setQuery('document_srl', document_srl);
}
// 딜레이 후 창 닫기