Permalink
Browse files

Fix context in alerts

  • Loading branch information...
1 parent 862dead commit 746d548ec4002e614ad9f40338a66e5ed5846bbd @cdujeu cdujeu committed Jul 1, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 core/src/plugins/core.notifications/NotificationCenter.php
@@ -405,7 +405,8 @@ public function loadUserAlerts(\Psr\Http\Message\ServerRequestInterface $request
$nodeRepo = $node->getRepository();
if($nodeRepo != null && $nodeRepo->hasParent() && $nodeRepo->getParentId() == $repositoryFilter){
- $currentRoot = $nodeRepo->getContextOption($ctx, "PATH");
+ $newCtx = $node->getContext();
+ $currentRoot = $nodeRepo->getContextOption($newCtx, "PATH");
$contentFilter = $nodeRepo->getContentFilter();
if(isSet($contentFilter)){
$nodePath = $contentFilter->filterExternalPath($node->getPath());

0 comments on commit 746d548

Please sign in to comment.