restore id-field override if title-field exists

This commit is contained in:
Paul van Genuchten
2022-06-12 17:58:46 +02:00
committed by Sander Schaminee
parent 104980d10c
commit dd7ba418bc
+2
View File
@@ -1542,6 +1542,8 @@ class API:
if p.title_field is not None:
content['title_field'] = l10n.translate(p.title_field,
request.locale)
# If title exists, use it as id in html templates
content['id_field'] = content['title_field']
content = render_j2_template(self.config,
'collections/items/index.html',
content, request.locale)