avoid error when no report assigned
This commit is contained in:
parent
6b09ed2f9f
commit
14242e77c7
1 changed files with 2 additions and 1 deletions
|
@ -184,6 +184,7 @@ class ResultsConceptView(ConceptView):
|
|||
if not reports:
|
||||
type = self.context.conceptType
|
||||
reports = type.getParents([self.hasReportPredicate])
|
||||
if reports:
|
||||
return adapted(reports[0])
|
||||
|
||||
@Lazy
|
||||
|
|
Loading…
Add table
Reference in a new issue