mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
handle children of closing motive for isCanceledAccompanyingPeriod
This commit is contained in:
parent
3816d68e18
commit
9b061eeaae
@ -90,7 +90,7 @@ class ClosingMotive
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->children->add($child);
|
$this->children->add($child);
|
||||||
$child->setParent($this);
|
$child->setParent($this)->setIsCanceledAccompanyingPeriod($this->getIsCanceledAccompanyingPeriod());
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
@ -239,6 +239,10 @@ class ClosingMotive
|
|||||||
{
|
{
|
||||||
$this->isCanceledAccompanyingPeriod = $isCanceledAP;
|
$this->isCanceledAccompanyingPeriod = $isCanceledAP;
|
||||||
|
|
||||||
|
foreach ($this->getChildren() as $child) {
|
||||||
|
$child->setIsCanceledAccompanyingPeriod($isCanceledAP);
|
||||||
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user