wcs: don't crash indexing an unconfigured category cell (#20975)

This commit is contained in:
Frédéric Péters 2018-01-03 21:37:06 +01:00
parent 0373e5bedf
commit 7ab32ab4f1
1 changed files with 2 additions and 0 deletions

View File

@ -395,6 +395,8 @@ class WcsFormsOfCategoryCell(WcsCommonCategoryCell, WcsBlurpMixin):
return ''
def get_external_links_data(self):
if not self.category_reference:
return
formdefs = self.get_data({'synchronous': True})
for site in formdefs.values():
for formdef in site.get('data'):