mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
improvement, but still not correct
This commit is contained in:
parent
d81a41bb17
commit
ea21f2d9c4
@ -235,15 +235,13 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
|
||||
if (count($descendants) > 0) {
|
||||
foreach ($descendants as $d) {
|
||||
$inCollection = $this->socialActions->contains($d);
|
||||
|
||||
if ($inCollection) {
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (!$this->socialActions->contains($socialAction)) {
|
||||
$this->socialActions[] = $socialAction;
|
||||
}
|
||||
}
|
||||
if (!$this->socialActions->contains($socialAction)) {
|
||||
$this->socialActions[] = $socialAction;
|
||||
}
|
||||
|
||||
return $this;
|
||||
@ -256,15 +254,14 @@ class Activity implements AccompanyingPeriodLinkedWithSocialIssuesEntityInterfac
|
||||
if (count($descendants) > 0) {
|
||||
foreach ($descendants as $d) {
|
||||
$inCollection = $this->socialIssues->contains($d);
|
||||
|
||||
if ($inCollection) {
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (!$this->socialIssues->contains($socialIssue)) {
|
||||
$this->socialIssues[] = $socialIssue;
|
||||
}
|
||||
}
|
||||
|
||||
if (!$this->socialIssues->contains($socialIssue)) {
|
||||
$this->socialIssues[] = $socialIssue;
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user