check for ancestors when validating the presence of accompanying

period's social issues
This commit is contained in:
2021-12-07 18:17:22 +01:00
parent e6c60e66fc
commit 4e4add3cc1
4 changed files with 29 additions and 23 deletions

View File

@@ -122,7 +122,7 @@ class SocialIssue
}
/**
* get all the ancestors of the social issue
* get all the ancestors of the social issue.
*
* @param bool $includeThis if the array in the result must include the present SocialIssue
*/
@@ -135,6 +135,7 @@ class SocialIssue
}
$current = $this;
while ($current->hasParent()) {
$ancestors[] = $current = $current->getParent();
}