- 🇨🇭Switzerland axelm
Hi
Thanks for reporting this and suggesting some patch,
We will include a fix in the next Opigno release. - Status changed to Fixed
over 1 year ago 4:47pm 21 June 2023 - Status changed to Fixed
over 1 year ago 4:48pm 21 June 2023
opigno_learning_path\LearningPathAccess has code like the following:
$token = \Drupal::moduleHandler()->moduleExists('token') ? TRUE : FALSE;
LearningPathAccess::notifyUsersByMail($group, $uid, $status, $token);
...
public static function replaceGroupUserTokens(&$text, $params, $token) {
if ($token) {
$text = \Drupal::token()->replace($text);
However, Drupal::token() is always available with Drupal core. Token module in contrib only provides additional tokens and the browser UI.
Always call Drupal::token()->replace() and remove the moduleExists() checks
Fixed
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Hi
Thanks for reporting this and suggesting some patch,
We will include a fix in the next Opigno release.