mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 02:25:00 +00:00
handle children of closing motive for isCanceledAccompanyingPeriod
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user