Fixed coach disassociation not giving visual result in front end
This commit is contained in:
parent
53be9d3cce
commit
8299d4c9d1
2
amd/build/studyplan-editor-components.min.js
vendored
2
amd/build/studyplan-editor-components.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1036,7 +1036,9 @@ export default {
|
|||
},
|
||||
coachDisassociate() {
|
||||
const self = this;
|
||||
const associated = self.association.coaches;
|
||||
const associatedselected = self.selected.associated.coaches;
|
||||
const search = self.search.coaches;
|
||||
for (const i in associatedselected) {
|
||||
const r = associatedselected[i];
|
||||
|
||||
|
@ -1046,7 +1048,10 @@ export default {
|
|||
'studyplan_id': self.value.id,
|
||||
'user_id': r,
|
||||
}
|
||||
}])[0].then(() => {
|
||||
}])[0].then((response) => {
|
||||
if (response.success) {
|
||||
transportItem(search, associated, r);
|
||||
}
|
||||
return;
|
||||
}).catch(notification.exception);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user