Skip to content

Commit cd6e9dc

Browse files
committed
Portfolio: Fix portfolios list in social network (void the course context to avoid showing only portfolios from one course)
1 parent fd944a2 commit cd6e9dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main/portfolio/index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
use Chamilo\CoreBundle\Entity\Session;
99
use Chamilo\UserBundle\Entity\User;
1010

11+
// Make sure we void the course context if we are in the social network section
12+
if (empty($_GET['cidReq'])) {
13+
$cidReset = true;
14+
}
1115
require_once __DIR__.'/../inc/global.inc.php';
1216

1317
api_block_anonymous_users();

0 commit comments

Comments
 (0)