Fixed error occurring when mentor or student posts a comment because a built-in function was passed rather then a real argument.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 24 Mar 2009 18:43:22 +0000
changeset 2003 ed24a0bd19d9
parent 2002 7698408e10a5
child 2004 4d9e41c947fd
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
app/soc/views/models/student_proposal.py
--- 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)