Extensions: Retain current list page through edit, (single) delete, and back operations.

This commit is contained in:
Nate
2019-09-10 18:07:49 -06:00
parent 19e8305a8e
commit abc4d01bac
4 changed files with 29 additions and 21 deletions
+5 -4
View File
@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2016
Portions created by the Initial Developer are Copyright (C) 2008-2019
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -50,13 +50,14 @@
if (!is_numeric($extension_new)) {
$number_alias_new = $_REQUEST["alias"];
}
$page = $_REQUEST['page'];
}
// skip the copy if the domain extension already exists
$extension = new extension;
if ($extension->exists($_SESSION['domain_uuid'], $extension_new)) {
message::add($text['message-duplicate'], 'negative');
header("Location: extensions.php");
header("Location: extensions.php".(is_numeric($page) ? '?page='.$page : null));
exit;
}
@@ -194,7 +195,7 @@
//redirect the user
message::add($text['message-copy']);
header("Location: extensions.php");
header("Location: extensions.php".(is_numeric($page) ? '?page='.$page : null));
exit;
?>
?>