Fixed error occurring when mentor or student posts a comment because a built-in function was passed rather then a real argument.
Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
--- a/app/soc/views/models/student_proposal.py Tue Mar 24 18:00:46 2009 +0000
+++ b/app/soc/views/models/student_proposal.py Tue Mar 24 18:43:22 2009 +0000
@@ -355,7 +355,7 @@
if not reviewer:
# no org_admin found, maybe it's a mentor?
- reviewer = mentor_logic.logic.getForFields(filter, unique=True)
+ reviewer = mentor_logic.logic.getForFields(fields, unique=True)
# create the review (reviewer might be None if a Host or Developer is posting)
self._createReviewFor(entity, reviewer, comment, is_public=True)