Add mid to declare popup URL

This commit is contained in:
Kijin Sung 2021-02-11 20:22:16 +09:00
parent 68829a3427
commit 7df902a282

View file

@ -507,12 +507,12 @@ class documentModel extends document
// Adding Report
if($oDocument->getDeclared())
{
$url = getUrl('', 'act', 'dispDocumentDeclare', 'target_srl', $document_srl, 'type', 'cancel');
$url = getUrl('', 'mid', $oDocument->getDocumentMid(), 'act', 'dispDocumentDeclare', 'target_srl', $document_srl, 'type', 'cancel');
$oDocumentController->addDocumentPopupMenu($url,'cmd_cancel_declare','','popup');
}
else
{
$url = getUrl('', 'act', 'dispDocumentDeclare', 'target_srl', $document_srl);
$url = getUrl('', 'mid', $oDocument->getDocumentMid(), 'act', 'dispDocumentDeclare', 'target_srl', $document_srl);
$oDocumentController->addDocumentPopupMenu($url,'cmd_declare','','popup');
}