Bug fix due to my last commit - Requests do not have supported_field_types, FormDefinitions do.

This commit is contained in:
Greg Von Kuster
2010-11-17 10:46:21 -05:00
parent c3c7c89c5d
commit 945fde04b7
+2 -2
View File
@@ -601,7 +601,7 @@ class Forms( BaseController ):
for ft in trans.model.Sample.supported_field_types:
self.fieldtype.add_option( ft.__name__, ft.__name__ )
else:
for ft in trans.model.Request.supported_field_types:
for ft in trans.model.FormDefinition.supported_field_types:
self.fieldtype.add_option( ft.__name__, ft__name__ )
self.required = SelectField('field_required_'+str(index), display='radio')
self.required.add_option('Required', 'required')
@@ -641,7 +641,7 @@ class Forms( BaseController ):
else:
self.fieldtype.add_option( ft.__name__, ft.__name__ )
else:
for ft in trans.model.Request.supported_field_types:
for ft in trans.model.FormDefinition.supported_field_types:
if ft.__name__ == field[ 'type' ]:
self.fieldtype.add_option( ft.__name__, ft.__name__, selected=True )
if ft == 'SelectField':