#7495 fixed report name 2

This commit is contained in:
Daniel Maya 2021-08-26 12:03:14 +02:00
parent 88c42d953f
commit 0a79014480
2 changed files with 2 additions and 3 deletions

View File

@ -3370,7 +3370,7 @@ $buttons['view'] = [
$buttons[$activeTab]['active'] = true; $buttons[$activeTab]['active'] = true;
if ($idReport != 0) { if ($idReport != 0) {
$textReportName = $report['name']; $textReportName = (empty($reportName) === false) ? $reportName : $report['name'];
} else { } else {
$temp = $buttons['main']; $temp = $buttons['main'];
$buttons = null; $buttons = null;

View File

@ -2302,8 +2302,7 @@ function reporting_agents_inventory($report, $content)
$search_sql = ''; $search_sql = '';
if ($es_custom_fields != '') { if ($es_custom_fields != '') {
// Search custom field. $search_sql .= ' AND id_os = '.$es_custom_fields;
// $search_sql .= ' AND id_os = '.$es_custom_fields;
} }
if (in_array('0', $es_os_filter) === false) { if (in_array('0', $es_os_filter) === false) {