mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
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:
@@ -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")
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user