fix new logic to calculator with required and optional subjects
This commit is contained in:
parent
8a94e7a750
commit
75870ab2fd
|
@ -50,6 +50,7 @@ class CalculatorController extends Controller
|
||||||
->filter(fn($optionalSubject) => in_array($optionalSubject, $calcultatorSubjects));
|
->filter(fn($optionalSubject) => in_array($optionalSubject, $calcultatorSubjects));
|
||||||
return $optionalSubjectsInCalculator->count() !== 0;
|
return $optionalSubjectsInCalculator->count() !== 0;
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
})->map(fn($subjectTypes, $directionId) => $directionId);
|
})->map(fn($subjectTypes, $directionId) => $directionId);
|
||||||
|
|
||||||
$directions = Direction::whereIn('id', $result)->get();
|
$directions = Direction::whereIn('id', $result)->get();
|
||||||
|
|
Loading…
Reference in New Issue