Skip to content

Commit

Permalink
fix: apply translation on kb list
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Apr 27, 2021
1 parent f9fabb5 commit fb0f1a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,10 @@ public function showFormList(int $rootCategory = 0, string $keywords = '', bool
$result_faqs = $DB->request($query_faqs);
if ($result_faqs->count() > 0) {
foreach ($result_faqs as $faq) {
// Manage translations
if (isset($faq['transname']) && !empty($faq['transname'])) {
$faq['name'] = $faq["transname"];
}
$formList[] = [
'id' => $faq['id'],
'name' => $faq['name'],
Expand Down

0 comments on commit fb0f1a6

Please sign in to comment.