Commit fb26cbf2 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_web: getAvailableLanguageList may return nothing or []

parent 51f69ab2
......@@ -8,7 +8,7 @@ if context.getAggregate():
max_content_modification_date = context.getModificationDate()
for default_page_reference in context.getAggregateReferenceList():
if default_page_reference:
for language in (None,) + context.getAvailableLanguageList():
for language in (None,) + (context.getAvailableLanguageList() or ()):
default_page = getDocumentValue(
default_page_reference,
language=language,
......
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