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