mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
new/show/edit/delete/list functionality added for accompanyingperiod task
This commit is contained in:
@@ -248,11 +248,23 @@ abstract class AbstractTask implements HasScopeInterface, HasCenterInterface
|
||||
{
|
||||
if ($this->getPerson() instanceof Person) {
|
||||
return $this->getPerson()->getCenter();
|
||||
} else {
|
||||
return $this->getCourse()->getCenter();
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
public function getContext()
|
||||
{
|
||||
// if ($this->getCourse() instanceof AccompanyingPeriod){
|
||||
// return $this->getCourse();
|
||||
// } else {
|
||||
// return $this->getPerson();
|
||||
// }
|
||||
return $this->getPerson() ?? $this->getCourse();
|
||||
}
|
||||
|
||||
public function getScope(): ?\Chill\MainBundle\Entity\Scope
|
||||
{
|
||||
|
Reference in New Issue
Block a user