Delete favourite vc from menu when vc is deleted
This commit is contained in:
parent
4db9df6df5
commit
8174925a91
|
@ -206,13 +206,19 @@ if ($access_console_node === true) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$layouts = visual_map_get_user_layouts($config['id_user'], false, false, $returnAllGroups, true);
|
$layouts = visual_map_get_user_layouts($config['id_user'], false, false, $returnAllGroups, true);
|
||||||
|
|
||||||
$sub2 = [];
|
$sub2 = [];
|
||||||
|
|
||||||
if ($layouts === false) {
|
if ($layouts === false) {
|
||||||
$layouts = [];
|
$layouts = [];
|
||||||
} else {
|
} else {
|
||||||
$id = (int) get_parameter('id', -1);
|
$id = (int) get_parameter('id', -1);
|
||||||
|
$delete_layout = (bool) get_parameter('delete_layout');
|
||||||
|
|
||||||
|
if ($delete_layout === true) {
|
||||||
|
$id_layout = (int) get_parameter('id_layout');
|
||||||
|
unset($layouts[$id_layout]);
|
||||||
|
}
|
||||||
|
|
||||||
$break_max_console = false;
|
$break_max_console = false;
|
||||||
$max = $config['vc_menu_items'];
|
$max = $config['vc_menu_items'];
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
Loading…
Reference in New Issue