This patch should correct the issue.
Before attempting to create a new LP attempt, we check to see if there is a module within the LP that the user is allowed to do. If there isn't we redirect to the LP homepage.
2gendevs → created an issue.
This patch is working for us to correct this bug.
2gendevs → created an issue. See original summary → .
We also had this issue with a "fill in the blank" activity. The patch from #12 solved it for us too.
2gendevs → created an issue.
2gendevs → created an issue.
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.
Hey thanks for putting this together for us!
Looks like its 95% working although we have an issue on our end where if multiple users read the same post the unread filter will show read messages.
Did you try it with multiple users on your end and it worked?
Thanks again.
2gendevs → created an issue.
Any update on this issue? We are also experiencing an issue with geolocation and it seemingly not working now. It was working.
Our use of geolocation is within a form's autocomplete. So a user types in a location and geolocation will return with a list of results.
For example: "Toronto" will return "Toronto, ON, Canada".
However, for us only a few locations work (such as Toronto). It seems major population centers work, but minor ones do not. Either nothing is returned or just "Canada" is returned.
An example: entering "London" use to return "London, ON, Canada" - now as you type "CANADA" is returned until you type the entire word "London" and then nothing is returned.
If you get specific enough you get results. For example: "London, Ontario" returns with the expected "London, ON, Canada".
Any idea what is going on? Why was there a shift in behavior?