From 5fafcf0e5145012f873f9f74ea3bea0164c415e7 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 9 Apr 2018 17:39:49 +0200 Subject: [PATCH] * Mail: Fix mail import does not display imported mail in correct style --- mail/inc/class.mail_ui.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index 3a0997ba39..9ec94b369c 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -3721,9 +3721,8 @@ $filter['before']= date("d-M-Y", $cutoffdate2); } if (!$importFailed) { - list($width, $height) = explode('x', Link::get_registry('mail', 'add_popup')); - if ($width > 0 && $height > 0) Api\Json\Response::get()->call('resizeTo', $width, $height); - ExecMethod2('mail.mail_ui.displayMessage',$linkData); + Api\Json\Response::get()->call('egw.open', $linkData['id'], 'mail', 'view'); + Api\Json\Response::get()->call('window.close'); return; } }