event multiple operations pandora_enterprise#9671

This commit is contained in:
Daniel Barbero 2022-10-19 16:20:49 +02:00
parent c8e8ea61f3
commit 6ef3505eab
2 changed files with 15 additions and 5 deletions

View File

@ -707,7 +707,7 @@ function execute_event_response(event_list_btn) {
}
in_process_event(
"events",
"table_events",
event_id,
$(this).attr("event_rep"),
this.parentElement.parentElement,
@ -727,7 +727,7 @@ function execute_event_response(event_list_btn) {
}
validate_event(
"events",
"table_events",
event_id,
$(this).attr("event_rep"),
this.parentElement.parentElement,
@ -747,7 +747,7 @@ function execute_event_response(event_list_btn) {
}
execute_delete_event_reponse(
"events",
"table_events",
event_id,
$(this).attr("event_rep"),
this.parentElement.parentElement,

View File

@ -1445,7 +1445,7 @@ if ($pure) {
).'</a>';
// If the user has administrator permission display manage tab.
if ($event_w || $event_m) {
if ($event_w === true || $event_m === true) {
// Manage events.
$manage_events['active'] = false;
$manage_events['text'] = '<a href="index.php?sec=eventos&sec2=godmode/events/events&amp;section=filter&amp;pure='.$config['pure'].'">'.html_print_image(
@ -1771,7 +1771,7 @@ $buttons[] = [
'onclick' => '',
];
if ($event_w || $event_m) {
if ($event_w === true || $event_m === true) {
$buttons[] = [
'id' => 'save-filter',
'class' => 'float-left margin-right-2 sub wand',
@ -2395,6 +2395,16 @@ if (is_user_admin($config['id_user'])) {
);
}
$array_events_actions = [];
if ($event_w === true && $readonly === false) {
$array_events_actions['in_progress_selected'] = __('In progress selected');
$array_events_actions['validate_selected'] = __('Validate selected');
}
if ($event_m === true && $readonly === false) {
$array_events_actions['delete_selected'] = __('Delete selected');
}
foreach ($event_responses as $val) {
$array_events_actions[$val['id']] = $val['name'];
}