Skip to content

Commit 603b8ea

Browse files
committed
fix(knowbase,form): kb item translation missing
1 parent 11d9e6b commit 603b8ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inc/form.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ public static function getFormList(int $rootCategory = 0, string $keywords = '',
843843
foreach ($result_faqs as $faq) {
844844
$formList[] = [
845845
'id' => $faq['id'],
846-
'name' => $faq['name'],
846+
'name' => $faq['transname'] ?? $faq['name'],
847847
'icon' => '',
848848
'icon_color' => '',
849849
'background_color' => '',

inc/knowbase.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public static function getFaqItems($rootCategory = 0, $keywords = '') {
222222
foreach ($result_faqs as $faq) {
223223
$formList[] = [
224224
'id' => $faq['id'],
225-
'name' => $faq['name'],
225+
'name' => $faq['transname'] ?? $faq['name'],
226226
'icon' => '',
227227
'icon_color' => '',
228228
'background_color' => '',

0 commit comments

Comments
 (0)