Fixed broken selection questions from refactoring SurveyForm.
authorDaniel Diniz <ajaksu@gmail.com>
Sat, 04 Jul 2009 15:30:08 +0200
changeset 2533 941732c52b67
parent 2532 0b4dbe4b3fb7
child 2534 c880489123fc
Fixed broken selection questions from refactoring SurveyForm. Reviewed by: Lennard de Rijk
app/soc/views/helper/surveys.py
--- a/app/soc/views/helper/surveys.py	Sat Jul 04 15:16:54 2009 +0200
+++ b/app/soc/views/helper/surveys.py	Sat Jul 04 15:30:08 2009 +0200
@@ -293,8 +293,7 @@
     # add all properties, but select chosen one
     # TODO(ajaksu): this breaks ordering and blocks merging choice methods
     options = getattr(self.survey_content, field)
-    has_record = not self.editing and self.survey_record
-    if has_record and hasattr(self.survey_record, field):
+    if self.survey_record and hasattr(self.survey_record, field):
       these_choices.append((value, value))
       if value in options:
         options.remove(value)