web/views/editforms.py
branchtls-sprint
changeset 1767 f0ba5a07e271
parent 1766 6c23a5e0c490
child 1778 311026c9073a
--- a/web/views/editforms.py	Tue May 12 20:52:36 2009 +0200
+++ b/web/views/editforms.py	Tue May 12 20:53:45 2009 +0200
@@ -133,7 +133,7 @@
                                               Button(stdmsgs.BUTTON_CANCEL,
                                                      onclick="cancelInlineEdit(%s,\'%s\',\'%s\')" %\
                                                          (entity.eid, rtype, divid))])
-        form.append_field(RelationField(name=rtype, sort=True,
+        form.append_field(RelationField(name=rtype, role=role, sort=True,
                                         widget=Select(),
                                         label=u' '))
         self.w(tags.div(value, klass='editableField', id=divid,