restore id-field override if title-field exists
This commit is contained in:
committed by
Sander Schaminee
parent
104980d10c
commit
dd7ba418bc
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user