mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
fix small risky code
This commit is contained in:
@@ -92,7 +92,7 @@ class SocialIssue
|
||||
{
|
||||
if (!$this->socialActions->contains($socialAction)) {
|
||||
$this->socialActions[] = $socialAction;
|
||||
$socialAction->setSocialIssue($this);
|
||||
$socialAction->setIssue($this);
|
||||
}
|
||||
|
||||
return $this;
|
||||
@@ -328,8 +328,8 @@ class SocialIssue
|
||||
{
|
||||
if ($this->socialActions->removeElement($socialAction)) {
|
||||
// set the owning side to null (unless already changed)
|
||||
if ($socialAction->getSocialIssue() === $this) {
|
||||
$socialAction->setSocialIssue(null);
|
||||
if ($socialAction->getIssue() === $this) {
|
||||
$socialAction->setIssue(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user