[ui] Fix display of language when a value is specified
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 08 Jul 2016 13:45:16 +0200
changeset 1371 f446c9a1c147
parent 1370 365d91dcf2b5
child 1372 187b2c8dd288
[ui] Fix display of language when a value is specified
views/content.py
--- a/views/content.py	Fri Jul 08 13:38:03 2016 +0200
+++ b/views/content.py	Fri Jul 08 13:45:16 2016 +0200
@@ -55,7 +55,7 @@
         novalue_label = _('<no value specified>')
     else:
         novalue_label = _('<unauthorized>')
-    vid = 'seda.reledit.text'
+    vid = 'seda.reledit.complexlink' if 'language' in rtype else 'seda.reledit.text'
     if role == 'subject':
         rec.tag_subject_of(('SEDAContent', rtype, '*'),
                            {'rvid': vid, 'novalue_label': novalue_label})