Update destination_edit.php
This commit is contained in:
parent
dd96590619
commit
7ba073ffce
|
|
@ -51,6 +51,14 @@
|
||||||
$action = "add";
|
$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
|
//get total destination count from the database, check limit, if defined
|
||||||
if (!permission_exists('destination_domain')) {
|
if (!permission_exists('destination_domain')) {
|
||||||
if ($action == 'add') {
|
if ($action == 'add') {
|
||||||
|
|
@ -417,7 +425,7 @@
|
||||||
if ($action == "update") {
|
if ($action == "update") {
|
||||||
messages::add($text['message-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;
|
return;
|
||||||
|
|
||||||
} //(count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0)
|
} //(count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0)
|
||||||
|
|
@ -570,7 +578,7 @@
|
||||||
echo "<td align='left' width='30%' nowrap='nowrap' valign='top'><b>".$text['header-destination-edit']."</b></td>\n";
|
echo "<td align='left' width='30%' nowrap='nowrap' valign='top'><b>".$text['header-destination-edit']."</b></td>\n";
|
||||||
}
|
}
|
||||||
echo "<td width='70%' align='right' valign='top'>";
|
echo "<td width='70%' align='right' valign='top'>";
|
||||||
echo " <input type='button' class='btn' alt='".$text['button-back']."' onclick=\"window.location='destinations.php'\" value='".$text['button-back']."'>";
|
echo " <input type='button' class='btn' alt='".$text['button-back']."' onclick=\"window.location='destinations.php?type=".$destination_type."'\" value='".$text['button-back']."'>";
|
||||||
echo " <input type='submit' class='btn' value='".$text['button-save']."'>\n";
|
echo " <input type='submit' class='btn' value='".$text['button-save']."'>\n";
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue