fix of aside activity category creation

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

View File

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