Browse Source

WIP: Fix level selection for last skill selected BT#13586

Julio 7 years ago
parent
commit
f7ef3e8d7f
1 changed files with 5 additions and 1 deletions
  1. 5 1
      main/badge/assign.php

+ 5 - 1
main/badge/assign.php

@@ -71,7 +71,11 @@ if ($skill) {
 }
 
 if (!empty($subSkillList)) {
-    $skillId = end($subSkillList);
+   // $skillId = end($subSkillList);
+    $skillFromLastSkill = $skillRepo->find(end($subSkillList));
+    if ($skillFromLastSkill) {
+        $profile = $skillFromLastSkill->getProfile();
+    }
 }
 
 if (!$profile) {