mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Add the menu_item_group_uuid primary key when adding a group to the menu
This commit is contained in:
@@ -153,7 +153,7 @@
|
|||||||
}
|
}
|
||||||
unset ($prep_statement);
|
unset ($prep_statement);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
public function xml() {
|
public function xml() {
|
||||||
if (isset($_SESSION['switch']['extensions']['dir'])) {
|
if (isset($_SESSION['switch']['extensions']['dir'])) {
|
||||||
//declare global variables
|
//declare global variables
|
||||||
|
|||||||
@@ -216,14 +216,17 @@ else {
|
|||||||
if ($_REQUEST["a"] != "delete" && strlen($group_name) > 0 && permission_exists('menu_add')) {
|
if ($_REQUEST["a"] != "delete" && strlen($group_name) > 0 && permission_exists('menu_add')) {
|
||||||
//add the group to the menu
|
//add the group to the menu
|
||||||
if (strlen($menu_item_uuid) > 0) {
|
if (strlen($menu_item_uuid) > 0) {
|
||||||
|
$menu_item_group_uuid = uuid();
|
||||||
$sql_insert = "insert into v_menu_item_groups ";
|
$sql_insert = "insert into v_menu_item_groups ";
|
||||||
$sql_insert .= "(";
|
$sql_insert .= "(";
|
||||||
|
$sql_insert .= "menu_item_group_uuid, ";
|
||||||
$sql_insert .= "menu_uuid, ";
|
$sql_insert .= "menu_uuid, ";
|
||||||
$sql_insert .= "menu_item_uuid, ";
|
$sql_insert .= "menu_item_uuid, ";
|
||||||
$sql_insert .= "group_name ";
|
$sql_insert .= "group_name ";
|
||||||
$sql_insert .= ")";
|
$sql_insert .= ")";
|
||||||
$sql_insert .= "values ";
|
$sql_insert .= "values ";
|
||||||
$sql_insert .= "(";
|
$sql_insert .= "(";
|
||||||
|
$sql_insert .= "'".$menu_item_group_uuid."', ";
|
||||||
$sql_insert .= "'".$menu_uuid."', ";
|
$sql_insert .= "'".$menu_uuid."', ";
|
||||||
$sql_insert .= "'".$menu_item_uuid."', ";
|
$sql_insert .= "'".$menu_item_uuid."', ";
|
||||||
$sql_insert .= "'".$group_name."' ";
|
$sql_insert .= "'".$group_name."' ";
|
||||||
|
|||||||
Reference in New Issue
Block a user