File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 198
198
foreach ($ subSkillList as $ subSkillId ) {
199
199
$ children = $ skillManager ->getChildren ($ subSkillId );
200
200
201
- if (isset ($ subSkillList [$ counter - 1 ])) {
201
+ if (isset ($ subSkillList [$ counter - 1 ]) && isset ( $ subSkillList [ $ counter ]) ) {
202
202
$ oldSkill = $ skillRepo ->find ($ subSkillList [$ counter ]);
203
203
}
204
204
$ skillsOptions = [];
Original file line number Diff line number Diff line change 150
150
}
151
151
152
152
$ acquiredLevel = [];
153
- $ profile = $ skillRepo ->find ($ skillId )->getProfile ();
153
+ $ profile = $ skillRepo ->find ($ skillId )->getLevelProfile ();
154
154
155
155
if (!$ profile ) {
156
156
$ skillRelSkill = new SkillRelSkillModel ();
160
160
161
161
foreach ($ parents as $ parent ) {
162
162
$ skillParentId = $ parent ['skill_id ' ];
163
- $ profile = $ skillRepo ->find ($ skillParentId )->getProfile ();
163
+ $ profile = $ skillRepo ->find ($ skillParentId )->getLevelProfile ();
164
164
165
165
if ($ profile ) {
166
166
break ;
Original file line number Diff line number Diff line change 108
108
}
109
109
110
110
$ acquiredLevel = [];
111
- $ profile = $ skillRepo ->find ($ skillId )->getProfile ();
111
+ $ profile = $ skillRepo ->find ($ skillId )->getLevelProfile ();
112
112
113
113
if (!$ profile ) {
114
114
$ skillRelSkill = new SkillRelSkillModel ();
118
118
119
119
foreach ($ parents as $ parent ) {
120
120
$ skillParentId = $ parent ['skill_id ' ];
121
- $ profile = $ skillRepo ->find ($ skillParentId )->getProfile ();
121
+ $ profile = $ skillRepo ->find ($ skillParentId )->getLevelProfile ();
122
122
123
123
if ($ profile ) {
124
124
break ;
You can’t perform that action at this time.
0 commit comments