I'm trying to use a quiz from quiz module (http://drupal.org/project/quiz) as a grade.
The data seems to be saved correctly but when I tried to see the grade only the title and the body of the quiz is showed instead of use the hook_view from quiz module.

I'm not quite sure if this is a bug from gradebook or from quiz module but quiz by itself works as it should so I supposed that the problem is in gradebook.

Comments

MGN’s picture

Status: Active » Postponed (maintainer needs more info)

I need some clarification on this so I can help:

I am not sure, but I think you mean that you want to use a quiz as an assignment type, right?

The data seems to be saved correctly

What data?

When I tried to see the grade only the title and the body of the quiz is showed

Is this when you are viewing the quiz node or viewing the grade for the quiz in the gradebook?

Can you try commenting out the line $node = node_prepare($node, $teaser); in gradebookapi_assignment_view (within gradebookapi.module)? Let me know if that solves the problem. It may be that this is filtering out the content provided the quiz module? Really just a guess, I am not sure what else would cause this but I'll keep my eyes open.

manolopm’s picture

Ok that's the trick, If I comment node_prepare line the quiz appears when I try to view the quiz node.
Maybe node_prepare in gradebook_responses.module could be a problem ? (I havent tried to see a response yet).

Once more, thanks

MGN’s picture

Status: Postponed (maintainer needs more info) » Fixed

I don't see a purpose for node_prepare in gradebook_responses either. I've also discovered some potential problems/confusion with some of the names of the gradebook_responses helper functions. I've committed these changes to 6.x-2.x.

Thanks again for your help.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.