cubicweb/entities/adapters.py
branch3.25
changeset 12160 608481168432
parent 11946 8de62610cea2
child 12355 c703dc95c82e
--- a/cubicweb/entities/adapters.py	Thu Apr 13 13:57:32 2017 +0200
+++ b/cubicweb/entities/adapters.py	Thu Apr 13 15:04:45 2017 +0200
@@ -49,7 +49,9 @@
 
     def long_title(self):
         """Return a more detailled title for entity"""
-        return self.title()
+        # go through entity.dc_title for bw compat purpose: if entity define dc_title but not
+        # dc_long_title, we still want it to be considered.
+        return self.entity.dc_title()
 
     def description(self, format='text/plain'):
         """Return a suitable description for entity"""