must skip internal field value from the generic relations combobox
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 26 Jan 2010 10:30:57 +0100
changeset 4358 9a902670e4ff
parent 4357 ef8e20bfa287
child 4359 fabc680bb0bf
must skip internal field value from the generic relations combobox
web/views/editviews.py
--- a/web/views/editviews.py	Tue Jan 26 10:29:50 2010 +0100
+++ b/web/views/editviews.py	Tue Jan 26 10:30:57 2010 +0100
@@ -331,7 +331,7 @@
                 if eview: # skip blank value
                     options.append('<option class="separator">-- %s --</option>'
                                    % xml_escape(eview))
-            else:
+            elif reid != ff.INTERNAL_FIELD_VALUE:
                 optionid = relation_id(entity.eid, rtype, role, reid)
                 if optionid not in pending_inserts:
                     # prefix option's id with letters to make valid XHTML wise