fix ForwardsAdd reroute mapping
This commit is contained in:
parent
f73aec13f4
commit
8d89ff832d
|
@ -49,7 +49,8 @@ class ForwardsAdd extends \Panel\Vmail {
|
||||||
if ($result_code == 0) {
|
if ($result_code == 0) {
|
||||||
$messages[] = "Success: Forwarding for email account $mbox@$domain added.";
|
$messages[] = "Success: Forwarding for email account $mbox@$domain added.";
|
||||||
$f3->set('SESSION.messages', $messages);
|
$f3->set('SESSION.messages', $messages);
|
||||||
if ($f3->get('SESSION.access') == 'vmail') {
|
$mapping = $f3->get('NAV.mapping');
|
||||||
|
if ($mapping == 'vmail') {
|
||||||
$f3->reroute("/Accounts/$mbox/Forwarding");
|
$f3->reroute("/Accounts/$mbox/Forwarding");
|
||||||
} else {
|
} else {
|
||||||
$f3->reroute("/Email/$domain/Accounts/$mbox/Forwarding");
|
$f3->reroute("/Email/$domain/Accounts/$mbox/Forwarding");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user