Closed (fixed)
Project:
Gradebook
Version:
6.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2009 at 23:29 UTC
Updated:
3 Apr 2009 at 02:40 UTC
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
Comment #1
MGN commentedI 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?
What data?
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.Comment #2
manolopm commentedOk 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
Comment #3
MGN commentedI 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.