BugFix default_settings anchors (#2984)

update anchor names to use correct names the mentioned commit changed the anchors over to use #anchor_{subcategory} from #{subcategory} but didn't correct all instances where anchors where called into the page
this commit broke it
45bf2e5fd6
This commit is contained in:
Mafoo
2018-02-09 03:36:28 +00:00
committed by FusionPBX
parent 5cebe62047
commit 37bd20930b
2 changed files with 3 additions and 3 deletions

View File

@@ -154,12 +154,12 @@
//set the message and redirect the user
if ($action == "add" && permission_exists('default_setting_add')) {
messages::add($text['message-add']);
header("Location: default_settings.php".(($search != '') ? "?search=".$search : null)."#".$default_setting_category);
header("Location: default_settings.php".(($search != '') ? "?search=".$search : null)."#anchor_".$default_setting_category);
return;
}
if ($action == "update" && permission_exists('default_setting_edit')) {
messages::add($text['message-update']);
header("Location: default_settings.php".(($search != '') ? "?search=".$search : null)."#".$default_setting_category);
header("Location: default_settings.php".(($search != '') ? "?search=".$search : null)."#anchor_".$default_setting_category);
return;
}
} //if ($_POST["persistformvar"] != "true")

View File

@@ -54,7 +54,7 @@ else {
unset($sql);
messages::add($text['message-update']);
header("Location: default_settings.php".(($search != '') ? "?search=".$search : null)."#".$category);
header("Location: default_settings.php".(($search != '') ? "?search=".$search : null)."#anchor_".$category);
exit;
}