Support replying to message in the same window #2154

This commit is contained in:
Kijin Sung 2023-07-17 21:38:44 +09:00
parent 6d8063b57e
commit e635970c6a
7 changed files with 27 additions and 8 deletions

View file

@ -187,7 +187,18 @@ class communicationView extends communication
*/
function dispCommunicationSendMessage()
{
if(!Context::get('m'))
// If window type is self, use member module layout.
// Otherwise, assume it's a popup window on PC for backward compatibility.
if(Context::get('window_type') === 'self')
{
$oMemberView = MemberView::getInstance();
if (!$oMemberView->checkMidAndRedirect())
{
$this->setRedirectUrl($oMemberView->getRedirectUrl());
return;
}
}
elseif(!Context::get('m'))
{
$this->setLayoutPath('./common/tpl/');
$this->setLayoutFile("popup_layout");