Portfolios: ELGG Portfolio Block: Hidden from users

Portfolios: ELGG Portfolio Block: Hidden from users

Robert C Kalajian Jr. -
回帖数:6
I'm having a weird issue with the eportfolio block. Admins and teachers can use it just fine. Ehen a user clicks "Join Now" and sets up their account, then goes back to Moodle they get a message saying "Sorry, his activity is currently hidden"

I'm using the ELGG .651 and Moodle 1.6.3.

Anyone else have this problem?
回复Robert C Kalajian Jr.

Re: Portfolios: ELGG Portfolio Block: Hidden from users

Robert C Kalajian Jr. -
回复Robert C Kalajian Jr.

Re: Portfolios: ELGG Portfolio Block: Hidden from users

Franky St. Pierre -
I am receiving the same problem.
回复Franky St. Pierre

Re: Portfolios: ELGG Portfolio Block: Hidden from users

Geoffrey Rowland -
Yes

We have the same problem too, but only in some courses. Perhaps is due to some combination of block layout, sticky blocks etc.

Strange...
回复Geoffrey Rowland

Re: Portfolios: ELGG Portfolio Block: Hidden from users

Deds Castillo -
Plugin developers的头像
We just encountered the same problem recently. I traced it to the assignment_eportfolio_offer_export function being called inside eportfolio_exportable. The function tries to initialize each assignment in a course. Problem is if the course module is visible false, it executes a "notice" which terminates the loop.

To fix this, add the following lines to the function assignment_eportfolio_offer_export in blocks/eportfolio/mod/assignment/lib.php

 if (!$cm = get_coursemodule_from_id('assignment', $mod->id)) {
 return false;
 }
 $context = get_context_instance(CONTEXT_MODULE, $cm->id);
 if (!$cm->visible and !has_capability('moodle/course:viewhiddenactivities', $context)) {
 return false;
 };
Do this right before the call to:
$assignmentinstance = new $assignmentclass($mod->id);