From fd3e9db5a3d662a443e6bda9f191c5e9718d8fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 30 Sep 2025 18:40:35 +0200 Subject: [PATCH] fix: use correct property to determine license requirements closes #869anf4gk --- src/Entity/JobProfile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/JobProfile.php b/src/Entity/JobProfile.php index 4e505fa..1b0f44c 100644 --- a/src/Entity/JobProfile.php +++ b/src/Entity/JobProfile.php @@ -168,7 +168,7 @@ class JobProfile implements BlameableEntityInterface, TimestampableEntityInterfa { // Check licenses $qualifiedByLicenses = true; - if (0 < $this->requiredTrainings->count()) { + if (0 < count($this->requiredLicenses)) { $teamerLicenseTypes = $teamer->getLicenses()->map(function (License $license) { return $license->getType(); })->toArray();