#10324 fixed deleted element fav menu

This commit is contained in:
Daniel Cebrian 2023-03-13 17:21:28 +01:00
parent 64cc261483
commit 90f0c3771f
8 changed files with 22 additions and 1 deletions

View File

@ -714,6 +714,14 @@ if ($is_management_allowed === true
);
if ($result && (!$usedGroup['return'])) {
db_process_sql_delete(
'tfavmenu_user',
[
'id_element' => $id_group,
'section' => 'Tactic_group',
'id_user' => $config['id_user'],
]
);
ui_print_success_message(__('Group successfully deleted'));
} else {
ui_print_error_message(

View File

@ -194,6 +194,7 @@ if ($delete_layout || $copy_layout) {
[
'id_element' => $id_layout,
'section' => 'Visual_Console',
'id_user' => $config['id_user'],
]
);

View File

@ -2044,6 +2044,14 @@ if (check_login()) {
if ($monitor_filters === false) {
echo 'error';
} else {
db_process_sql_delete(
'tfavmenu_user',
[
'id_element' => $id,
'section' => 'Modules',
'id_user' => $config['id_user'],
]
);
echo 'ok';
}
}

View File

@ -2775,6 +2775,7 @@ function agents_delete_agent($id_agents, $disableACL=false)
[
'id_element' => $id_agent,
'section' => 'Agents',
'id_user' => $config['id_user'],
]
);

View File

@ -239,6 +239,7 @@ function reports_delete_report($id_report)
[
'id_element' => $id_report,
'section' => 'Reporting',
'id_user' => $config['id_user'],
]
);

View File

@ -575,6 +575,7 @@ class Manager implements PublicLogin
[
'id_element' => $this->dashboardId,
'section' => 'Dashboard_',
'id_user' => $config['id_user'],
]
);
}

View File

@ -275,7 +275,7 @@ if ($not_found) {
} else {
if ($disabled_source === false) {
echo '<div id="map_loading" style="width: 98%;height: 1000px; background-color: rgba(245, 245, 245, .3);position: absolute;display: flex;justify-content: center;align-items: center;flex-direction: column-reverse;">';
echo html_print_image('images/spinner.gif', true, 'width: 50px;height: 50px;');
echo html_print_image('images/spinner.gif', true, ['style' => 'width: 50px;height: 50px;']);
echo '<div>'.__('Creating map...').'</div>';
echo '</div>';
$info1 = __('To create a network map that visually recreates link-level (L2) relationships, you must first discover these relationships with Discovery Server. Network maps only reflect relationships that have already been discovered.');

View File

@ -554,6 +554,7 @@ else if ($update_networkmap || $copy_networkmap || $delete) {
[
'id_element' => $id,
'section' => 'Network_map',
'id_user' => $config['id_user'],
]
);
$result_txt = ui_print_result_message(