From 95447a42991993934c32db96b04ca5baefb50d83 Mon Sep 17 00:00:00 2001 From: sonikf <93765174+sonikf@users.noreply.github.com> Date: Mon, 24 Feb 2025 00:29:00 +0200 Subject: [PATCH] fix trans for non latin languages --- htdocs/core/customreports.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/core/customreports.php b/htdocs/core/customreports.php index 5ab75d02fac..86352d2d86d 100644 --- a/htdocs/core/customreports.php +++ b/htdocs/core/customreports.php @@ -39,8 +39,11 @@ * @var Translate $langs * @var User $user * - * @var array $toselect + * @var ?int[] $toselect Items selected on page, only used to see if not empty here */ +' +@phan-var-force ?int[] $toselect +'; if (!defined('USE_CUSTOM_REPORT_AS_INCLUDE')) { require '../main.inc.php'; @@ -646,7 +649,7 @@ if (!defined('MAIN_CUSTOM_REPORT_KEEP_GRAPH_ONLY')) { foreach ($arrayofmesures as $key => $val) { $simplearrayofmesures[$key] = $arrayofmesures[$key]['label']; } - print $form->multiselectarray('search_measures', $simplearrayofmesures, $search_measures, 0, 0, 'minwidth300 widthcentpercentminusx', 1, 0, '', '', $langs->trans("Measures")); // Fill the array $arrayofmeasures with possible fields + print $form->multiselectarray('search_measures', $simplearrayofmesures, $search_measures, 0, 0, 'minwidth300 widthcentpercentminusx', 1, 0, '', '', $langs->transnoentitiesnoconv("Measures")); // Fill the array $arrayofmeasures with possible fields print ''; // XAxis