From 8bd1378d45d17da572381dd3e601a787c633bdfc Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Tue, 23 May 2023 16:35:55 +0200 Subject: [PATCH] #11293 Fix the menu to point to the list of reports and the link on all icons --- .../godmode/reporting/reporting_builder.php | 13 +++++++------ .../operation/reporting/reporting_viewer.php | 4 ++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/pandora_console/godmode/reporting/reporting_builder.php b/pandora_console/godmode/reporting/reporting_builder.php index cd049f1d83..70ae9b436a 100755 --- a/pandora_console/godmode/reporting/reporting_builder.php +++ b/pandora_console/godmode/reporting/reporting_builder.php @@ -508,11 +508,11 @@ switch ($action) { $buttons = [ 'list_reports' => [ 'active' => false, - 'text' => ''.html_print_image( + 'text' => ''.html_print_image( 'images/logs@svg.svg', true, [ - 'title' => __('Reports list'), + 'title' => __('Reports'), 'class' => 'main_menu_icon invert_filter', ] ).'', @@ -545,7 +545,7 @@ switch ($action) { // Header. ui_print_standard_header( - __('List of reports'), + __('Reports'), 'images/op_reporting.png', false, '', @@ -3561,7 +3561,7 @@ switch ($action) { $buttons = [ 'list_reports' => [ 'active' => false, - 'text' => ''.html_print_image('images/logs@svg.svg', true, ['title' => __('Reports list'), 'class' => 'invert_filter main_menu_icon']).'', + 'text' => ''.html_print_image('images/logs@svg.svg', true, ['title' => __('Reports'), 'class' => 'invert_filter main_menu_icon']).'', ], ]; @@ -3628,7 +3628,7 @@ $buttons = [ 'images/report_list.png', true, [ - 'title' => __('Reports list'), + 'title' => __('Reports'), 'class' => 'main_menu_icon invert_filter', ] ).'', @@ -3676,12 +3676,13 @@ if ($idReport != 0) { $buttons = [ 'main' => [ 'active' => true, - 'text' => ''.html_print_image('images/report_list.png', true, ['title' => __('Reports list'), 'class' => 'main_menu_icon invert_filter']).'', + 'text' => ''.html_print_image('images/report_list.png', true, ['title' => __('Reports'), 'class' => 'main_menu_icon invert_filter']).'', ], ]; $textReportName = __('Create Custom Report'); } +// here1 $tab_builder = ($activeTab === 'item_editor') ? 'reporting_item_editor_tab' : ''; if ($action !== 'update') { diff --git a/pandora_console/operation/reporting/reporting_viewer.php b/pandora_console/operation/reporting/reporting_viewer.php index 7784450371..16b075e3d7 100755 --- a/pandora_console/operation/reporting/reporting_viewer.php +++ b/pandora_console/operation/reporting/reporting_viewer.php @@ -111,11 +111,11 @@ $options = []; $options['list_reports'] = [ 'active' => false, - 'text' => ''.html_print_image( + 'text' => ''.html_print_image( 'images/report_list.png', true, [ - 'title' => __('Report list'), + 'title' => __('Reports'), 'class' => 'main_menu_icon invert_filter', ] ).'',