fix return path in tasks

This commit is contained in:
2021-10-28 00:50:18 +02:00
parent 97dbc4bc16
commit e63d645f8a
8 changed files with 75 additions and 168 deletions

View File

@@ -253,11 +253,6 @@ abstract class AbstractTask implements HasScopeInterface, HasCenterInterface
public function getContext()
{
// if ($this->getCourse() instanceof AccompanyingPeriod){
// return $this->getCourse();
// } else {
// return $this->getPerson();
// }
return $this->getPerson() ?? $this->getCourse();
}