fix of aside activity category creation

This commit is contained in:
Julie Lenaerts 2021-12-13 10:05:51 +01:00
parent 6e1340be27
commit 20c4d07668
2 changed files with 6 additions and 2 deletions

View File

@ -27,7 +27,7 @@ and this project adheres to
* [person] show number of children + allow set number of children to null (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/191) * [person] show number of children + allow set number of children to null (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/191)
* [person] show acceptSMS option (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/191) * [person] show acceptSMS option (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/191)
* [person] add death information in person render box in twig and vue render boxes (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/191) * [person] add death information in person render box in twig and vue render boxes (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/191)
* [asideactivity] creation of aside activity category fixed (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/262)
## Test releases ## Test releases

View File

@ -162,8 +162,12 @@ class AsideActivityCategory
public function setParent(?self $parent): self public function setParent(?self $parent): self
{ {
// cache the old result for changing it during validaiton // cache the old result for changing it during validaiton
$this->oldParent = $this->parent; if($this->parent) {
$this->oldParent = $this->parent;
}
$this->parent = $parent; $this->parent = $parent;
dump($this);
return $this; return $this;
} }