mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
fix of aside activity category creation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user