fix: called-off dispositions no longer block teamers
This commit is contained in:
@@ -6,7 +6,6 @@ use App\Controller\Traits\ReturnUrlTrait;
|
||||
use App\Entity\Assignment;
|
||||
use App\Entity\User;
|
||||
use App\Repository\ApplicationRepository;
|
||||
use App\Repository\DispositionRepository;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
@@ -19,7 +18,6 @@ class DetailController extends AbstractController
|
||||
|
||||
public function __construct(
|
||||
private readonly ApplicationRepository $applicationRepository,
|
||||
private readonly DispositionRepository $dispositionRepository,
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -39,13 +37,7 @@ class DetailController extends AbstractController
|
||||
])
|
||||
;
|
||||
|
||||
$disposition = $this
|
||||
->dispositionRepository
|
||||
->findOneBy([
|
||||
'assignment' => $assignment,
|
||||
'teamer' => $teamer,
|
||||
])
|
||||
;
|
||||
$disposition = $assignment->getActiveDispositionByTeamer($teamer);
|
||||
|
||||
$isBookmarked = $teamer->getBookmarks()->contains($assignment);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user