- 🇨🇭Switzerland axelm
Hi
Thanks for reporting this issue.
The fix will be included to the next release of Opigno. - Status changed to Downport
almost 2 years ago 4:17pm 7 February 2023 - Status changed to Fixed
over 1 year ago 4:35pm 21 June 2023 - Status changed to Fixed
over 1 year ago 4:35pm 21 June 2023 - 🇨🇦Canada 2gendevs
I don't think this has been fixed, or a new bug with the same issue has been introduced.
In the latest version, 3.1.0 (and 3.1.1), the patched file no longer has the relevant code and instead it has been moved to the service LearningPathContentService.php.
Within this file there is the block of code (starting around line 276):
elseif ($step['typology'] === 'Module') { $module = OpignoModule::load($step['id']); $langcode = $this->languageManager->getCurrentLanguage()->getId(); $step['module'] = $module->hasTranslation($langcode) ? $module->getTranslation($langcode) : $module; $step['name'] = $module->label(); } $title = $step['name'];
The call to $module->label(); does not appear to account for the translated values. Instead it is loading the default language value. Commenting out $module->label(); fixes the issue.