From 37f8ab4f4946e79a5cd6f6b2d5c491b3d8516695 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Tue, 23 Apr 2024 10:25:01 +0200 Subject: [PATCH] fix(knowbase,form): kb item translation missing --- inc/form.class.php | 2 +- inc/knowbase.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/form.class.php b/inc/form.class.php index ea7fe12b7..caecb503a 100644 --- a/inc/form.class.php +++ b/inc/form.class.php @@ -843,7 +843,7 @@ public static function getFormList(int $rootCategory = 0, string $keywords = '', foreach ($result_faqs as $faq) { $formList[] = [ 'id' => $faq['id'], - 'name' => $faq['name'], + 'name' => $faq['transname'] ?? $faq['name'], 'icon' => '', 'icon_color' => '', 'background_color' => '', diff --git a/inc/knowbase.class.php b/inc/knowbase.class.php index f779e03d6..aa8019f1c 100644 --- a/inc/knowbase.class.php +++ b/inc/knowbase.class.php @@ -222,7 +222,7 @@ public static function getFaqItems($rootCategory = 0, $keywords = '') { foreach ($result_faqs as $faq) { $formList[] = [ 'id' => $faq['id'], - 'name' => $faq['name'], + 'name' => $faq['transname'] ?? $faq['name'], 'icon' => '', 'icon_color' => '', 'background_color' => '',