Fix events comment tags acl

This commit is contained in:
Calvo 2023-02-16 13:16:41 +01:00
parent 10d275c2a5
commit d447b621de
1 changed files with 3 additions and 6 deletions

View File

@ -3476,7 +3476,7 @@ function events_page_responses($event)
// Comments.
$data = [];
$data[0] = __('Comment');
$data[0] = __('Comsssment');
$data[1] = '';
$data[2] = html_print_button(
__('Add comment'),
@ -5168,10 +5168,6 @@ function events_page_comments($event, $ajax=false, $groupedComments=[])
true
);
$comments_form .= '</div><br></div>';
} else {
$comments_form = ui_print_message(
__('If event replication is ongoing, it won\'t be possible to enter comments here. This option is only to allow local pandora users to see comments, but not to operate with them. The operation, when event replication is enabled, must be done only in the Metaconsole.')
);
}
if ($ajax === true) {
@ -5196,9 +5192,10 @@ function events_clean_tags($tags)
}
$event_tags = tags_get_tags_formatted($tags, false);
$event_tags = str_replace(' ', '', $event_tags);
$event_tags = io_safe_input($event_tags);
return explode(',', str_replace(' ', '', $event_tags));
return explode(',', $event_tags);
}