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);