Skip to content

Commit

Permalink
fix(knowbase,form): kb item translation missing
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Apr 23, 2024
1 parent 11d9e6b commit 603b8ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '',
Expand Down
2 changes: 1 addition & 1 deletion inc/knowbase.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '',
Expand Down

0 comments on commit 603b8ea

Please sign in to comment.