diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php
index f50b451683..c16cbd4a05 100755
--- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php
+++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php
@@ -8146,10 +8146,17 @@ function filterNcmAgentChange() {
},
success: function(data) {
$("#agent_ncm").empty();
+ var optionAny = $("")
+ .attr("value",0)
+ .html("Any");
+ // Add any option.
+ $("#agent_ncm").append(optionAny);
+
data.map(item => {
var option = $("")
.attr("value", item.id_agent)
.html(item.alias);
+ // Add agents options.
$("#agent_ncm").append(option);
});
},
diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php
index a74fcb4a47..d2d4f5850f 100644
--- a/pandora_console/include/functions_reporting_html.php
+++ b/pandora_console/include/functions_reporting_html.php
@@ -7437,6 +7437,7 @@ function reporting_html_ncm_backups($table, $item, $pdf=0)
ui_require_javascript_file('highlight.min');
ui_require_javascript_file('highlightjs-line-numbers.min');
ui_require_javascript_file('languages/plaintext.min');
+ ui_require_javascript_file('jquery', ENTERPRISE_DIR.'/include/javascript/');
ui_require_javascript_file('functions_ncm', ENTERPRISE_DIR.'/include/javascript/');
// Create table diff.
@@ -7448,6 +7449,8 @@ function reporting_html_ncm_backups($table, $item, $pdf=0)
$table_ncm->head = [];
$table_ncm->head[0] = __('Date');
$table_ncm->head[1] = __('Diff');
+ $table_ncm->caption = $item['caption'];
+ $table_ncm->id = 'ncm_backups';
$table_ncm->data = [];
@@ -7459,7 +7462,9 @@ function reporting_html_ncm_backups($table, $item, $pdf=0)
];
}
- return $table->data[] = html_print_table(
+ $table->colspan['ncm_backups']['cell'] = 3;
+ $table->cellstyle['ncm_backups']['cell'] = 'text-align: left;';
+ $table->data['ncm_backups']['cell'] = html_print_table(
$table_ncm,
true
);
diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css
index 63179618b1..7e9669bc21 100644
--- a/pandora_console/include/styles/pandora.css
+++ b/pandora_console/include/styles/pandora.css
@@ -12798,3 +12798,7 @@ tr.shown td.details-control {
position: relative;
top: -92px;
}
+
+#ncm_backups > caption > h4 {
+ color: black;
+}