Update call_edit.php

This commit is contained in:
FusionPBX 2019-02-19 10:30:23 -07:00 committed by GitHub
parent 044f048363
commit bcbda3feff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -382,11 +382,8 @@
$cache->delete("directory:".$number_alias."@".$_SESSION['domain_name']);
}
//redirect the user
//add the message
message::add($text['confirm-update']);
header("Location: ".$_REQUEST['return_url']);
return;
}
//show the header
@ -463,7 +460,6 @@
//show the content
echo "<form method='post' name='frm' action=''>\n";
echo "<input type='hidden' name='return_url' value='".$_SERVER["HTTP_REFERER"]."'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
@ -471,7 +467,7 @@
echo " <b>".$text['title']."</b>\n";
echo "</td>\n";
echo "<td width='70%' align='right' valign='top'>\n";
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='".$_SERVER["HTTP_REFERER"]."'\" value='".$text['button-back']."'>\n";
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='/'\" value='".$text['button-back']."'>\n";
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
echo "</td>\n";
echo "</tr>\n";