Browse Source

Portfolio: Fix portfolios list in social network (void the course context to avoid showing only portfolios from one course)

Yannick Warnier 6 years ago
parent
commit
cd6e9dcac6
1 changed files with 4 additions and 0 deletions
  1. 4 0
      main/portfolio/index.php

+ 4 - 0
main/portfolio/index.php

@@ -8,6 +8,10 @@ use Chamilo\CoreBundle\Entity\PortfolioCategory;
 use Chamilo\CoreBundle\Entity\Session;
 use Chamilo\UserBundle\Entity\User;
 
+// Make sure we void the course context if we are in the social network section
+if (empty($_GET['cidReq'])) {
+    $cidReset = true;
+}
 require_once __DIR__.'/../inc/global.inc.php';
 
 api_block_anonymous_users();