Update from 1.11.x

pull/3124/head
Julio Montoya 5 years ago
parent b41209b88a
commit fb81ba6b64
  1. 2
      public/main/inc/lib/notification.lib.php
  2. 20
      public/main/lp/learnpath.class.php

@ -528,6 +528,8 @@ class Notification extends Model
'data' => [
'title' => $title,
'message' => $content,
'body' => $content,
'sound' => 'default',
],
'notification' => [
'title' => $title,

@ -4556,15 +4556,17 @@ class learnpath
$session = $em->getRepository('ChamiloCoreBundle:Session')->find($sessionId);
}
$course = $courseRepo->find($courseId);
// Subscribed groups to a LP
$subscribedGroupsInLp = $itemRepo->getGroupsSubscribedToItem(
TOOL_LEARNPATH_CATEGORY,
$category->getId(),
$course,
$session
);
if ($courseId != 0) {
$course = $courseRepo->find($courseId);
// Subscribed groups to a LP
$subscribedGroupsInLp = $itemRepo->getGroupsSubscribedToItem(
TOOL_LEARNPATH_CATEGORY,
$category->getId(),
$course,
$session
);
}
if (!empty($subscribedGroupsInLp)) {
$groups = array_column($groups, 'iid');

Loading…
Cancel
Save