mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#10324 fixed deleted element fav menu
This commit is contained in:
parent
64cc261483
commit
90f0c3771f
@ -714,6 +714,14 @@ if ($is_management_allowed === true
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($result && (!$usedGroup['return'])) {
|
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'));
|
ui_print_success_message(__('Group successfully deleted'));
|
||||||
} else {
|
} else {
|
||||||
ui_print_error_message(
|
ui_print_error_message(
|
||||||
|
@ -194,6 +194,7 @@ if ($delete_layout || $copy_layout) {
|
|||||||
[
|
[
|
||||||
'id_element' => $id_layout,
|
'id_element' => $id_layout,
|
||||||
'section' => 'Visual_Console',
|
'section' => 'Visual_Console',
|
||||||
|
'id_user' => $config['id_user'],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -2044,6 +2044,14 @@ if (check_login()) {
|
|||||||
if ($monitor_filters === false) {
|
if ($monitor_filters === false) {
|
||||||
echo 'error';
|
echo 'error';
|
||||||
} else {
|
} else {
|
||||||
|
db_process_sql_delete(
|
||||||
|
'tfavmenu_user',
|
||||||
|
[
|
||||||
|
'id_element' => $id,
|
||||||
|
'section' => 'Modules',
|
||||||
|
'id_user' => $config['id_user'],
|
||||||
|
]
|
||||||
|
);
|
||||||
echo 'ok';
|
echo 'ok';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2775,6 +2775,7 @@ function agents_delete_agent($id_agents, $disableACL=false)
|
|||||||
[
|
[
|
||||||
'id_element' => $id_agent,
|
'id_element' => $id_agent,
|
||||||
'section' => 'Agents',
|
'section' => 'Agents',
|
||||||
|
'id_user' => $config['id_user'],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -239,6 +239,7 @@ function reports_delete_report($id_report)
|
|||||||
[
|
[
|
||||||
'id_element' => $id_report,
|
'id_element' => $id_report,
|
||||||
'section' => 'Reporting',
|
'section' => 'Reporting',
|
||||||
|
'id_user' => $config['id_user'],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -575,6 +575,7 @@ class Manager implements PublicLogin
|
|||||||
[
|
[
|
||||||
'id_element' => $this->dashboardId,
|
'id_element' => $this->dashboardId,
|
||||||
'section' => 'Dashboard_',
|
'section' => 'Dashboard_',
|
||||||
|
'id_user' => $config['id_user'],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -275,7 +275,7 @@ if ($not_found) {
|
|||||||
} else {
|
} else {
|
||||||
if ($disabled_source === false) {
|
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 '<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>'.__('Creating map...').'</div>';
|
||||||
echo '</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.');
|
$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.');
|
||||||
|
@ -554,6 +554,7 @@ else if ($update_networkmap || $copy_networkmap || $delete) {
|
|||||||
[
|
[
|
||||||
'id_element' => $id,
|
'id_element' => $id,
|
||||||
'section' => 'Network_map',
|
'section' => 'Network_map',
|
||||||
|
'id_user' => $config['id_user'],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
$result_txt = ui_print_result_message(
|
$result_txt = ui_print_result_message(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user