mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
fix return path in tasks
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user