avoid duplication of data if context is cyclically assigned to itself
This commit is contained in:
parent
7cb0cf0d95
commit
9bf69e88b3
1 changed files with 2 additions and 1 deletions
|
@ -344,7 +344,8 @@ class WorkReportInstance(ReportInstance):
|
||||||
def getAllSubtasks(self, concept, checked=None):
|
def getAllSubtasks(self, concept, checked=None):
|
||||||
result = []
|
result = []
|
||||||
if checked is None:
|
if checked is None:
|
||||||
checked = set()
|
#checked = set()
|
||||||
|
checked = set([concept])
|
||||||
for c in concept.getChildren([self.view.defaultPredicate]):
|
for c in concept.getChildren([self.view.defaultPredicate]):
|
||||||
if c.conceptType in self.taskTypes and c not in checked:
|
if c.conceptType in self.taskTypes and c not in checked:
|
||||||
result.append(c)
|
result.append(c)
|
||||||
|
|
Loading…
Add table
Reference in a new issue