fix: don't reject open applications in case of open slots
This commit is contained in:
1 parent
89118308e3
commit
52d996a251
1 file changed
+8
@@ -28,7 +28,15 @@ class RejectApplicationListener
|
||||
}
|
||||
|
||||
$disposition = $document->getDisposition();
|
||||
$assignment = $disposition->getAssignment();
|
||||
|
||||
// skip further processing in case there are open slots left
|
||||
if ($assignment->getConfirmedDispositions()->count() < $assignment->getAvailableDispositions()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$teamer = $disposition->getTeamer();
|
||||
|
||||
$otherApplications = $disposition
|
||||
->getAssignment()
|
||||
->getApplications()
|
||||
|
||||
Reference in new issue
Block a user