Commit 5f6f6be3 authored by Nicolas Chauvat's avatar Nicolas Chauvat
Browse files

B bugfix

branch : stable
parent a791b39470cf
......@@ -40,14 +40,12 @@ class AddRelationView(EditRelationBoxTemplate):
etypes = rschema.subjects(entity.e_schema)
if len(etypes) == 1:
self.etype = etypes[0]
fakebox = []
self.w(u'<div id="%s">' %
self.w(u'<h1>%s</h1>' % self.req._('relation %(relname)s of %(ent)s')
% {'relname': rschema.display_name(self.req, role(self)),
'ent': entity.view('incontext')})
self.w_unrelated(fakebox, entity)
for boxitem in fakebox:
for boxitem in self.unrelated_boxitems(entity):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment