#12706 fixed events groups by agent

This commit is contained in:
Daniel Cebrian 2023-12-26 18:33:31 +01:00
parent adffdc3cd0
commit bb92202ba2
1 changed files with 4 additions and 1 deletions

View File

@ -3080,7 +3080,10 @@ function process_datatables_callback(table, settings) {
.data()
.each( function ( group, i ) {
$(rows).eq( i ).show();
if ( last !== group ) {
// Compare only "a" tag because in metaconsole the node has "form".
let last_to_compare = $(last).filter('a').html();
let group_to_compare = $(group).filter('a').html();
if ( last_to_compare !== group_to_compare ) {
$(rows).eq( i ).before(
'<tr class="group"><td colspan="100%">'
+'<?php echo __('Agent').' '; ?>'