Checked over recycle bin parent/child flows

This commit is contained in:
Dan Brown
2020-11-07 15:05:13 +00:00
parent df10b508d8
commit b4da081552
2 changed files with 31 additions and 1 deletions

View File

@ -298,7 +298,7 @@ class Entity extends Ownable
return $this->chapter_id ? $this->chapter()->withTrashed()->first() : $this->book()->withTrashed()->first();
}
if ($this->isA('chapter')) {
return $this->book->withTrashed()->first();
return $this->book()->withTrashed()->first();
}
return null;
}