diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index 9e431c247f..b56864cf86 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -51,6 +51,14 @@ $action = "add"; } +//set the type + if ($_GET['type'] == 'outbound') { + $destination_type = 'outbound'; + } + else { + $destination_type = 'inbound'; + } + //get total destination count from the database, check limit, if defined if (!permission_exists('destination_domain')) { if ($action == 'add') { @@ -417,7 +425,7 @@ if ($action == "update") { messages::add($text['message-update']); } - header("Location: destination_edit.php?id=".$destination_uuid); + header("Location: destination_edit.php?id=".$destination_uuid."&type=".$destination_type); return; } //(count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) @@ -570,7 +578,7 @@ echo "".$text['header-destination-edit']."\n"; } echo ""; - echo " "; + echo " "; echo " \n"; echo "\n"; echo "\n";