Issue Details (XML | Word | Printable)

Key: MDL-14885
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Nobody
Reporter: Fernando salvatierra
Votes: 3
Watchers: 2
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Complete activity report does not show forum postings

Created: 18/May/08 04:36 AM   Updated: 17/Aug/08 08:47 PM
Return to search
Component/s: General
Affects Version/s: 1.9, 1.9.1, 1.9.2, 1.9.3
Fix Version/s: None

Participants: Fernando salvatierra, Nobody, Ray Lawrence and tamio
Security Level: None
Affected Branches: MOODLE_19_STABLE


 Description  « Hide
The Complete Activity Report does not show forum postings.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
tamio added a comment - 14/Aug/08 04:43 AM
The solution is over here:

go to mod/forum/lib.php

look for this function:

function forum_user_complete($course, $user, $mod, $forum)

and REPLACE with this code:

function forum_user_complete($course, $user, $mod, $forum) {
global $CFG;

if ($posts = forum_get_user_posts($forum->id, $user->id)) {

if (!$cm = get_coursemodule_from_instance('forum', $forum->id, $course->id)) { error('Course Module ID was incorrect'); }
$discussions = forum_get_user_involved_discussions($forum->id, $user->id);

foreach ($posts as $post) {
if (!isset($discussions[$forum->discussion])) { // BUG corrido por Tamio $discussion = $discussions[$forum->discussion]; forum_print_post($post, $discussion, $forum, $cm, $course, false, false, false, false); // BUG corrido por Tamio continue; }

}

} else { echo "<p>".get_string("noposts", "forum")."</p>"; }
}


Ray Lawrence added a comment - 17/Aug/08 08:47 PM
I've noticed this too. This aspect of the report has disappeared somewhere between 1.8.x and 1.9.

+ 1 for fixing


Ray Lawrence made changes - 17/Aug/08 08:47 PM
Field Original Value New Value
Affects Version/s 1.9.2 [ 10280 ]
Affects Version/s 1.9.3 [ 10290 ]
Priority Minor [ 4 ] Major [ 3 ]