Skip to content

Commit

Permalink
Merge pull request #4516 from mikhailprivalov/fixFrontChangeroup
Browse files Browse the repository at this point in the history
fix front change group field
  • Loading branch information
Wellheor1 authored Dec 2, 2024
2 parents 891c909 + 3e57d3e commit a790bb6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions l2-frontend/src/construct/ParaclinicResearchEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ export default {
showAllDepartmentForTemplateField: false,
userDepartmentId: null,
showPermissionsModal: false,
possibleGroupForField: [],
possibleGroupsForField: [],
};
},
computed: {
Expand Down Expand Up @@ -1706,6 +1706,7 @@ export default {
if (this.ex_deps.length > 0 && this.site_type === null) {
this.site_type = this.ex_deps[0].pk;
}
this.findPossibleGroupForField();
},
cancel() {
// eslint-disable-next-line no-restricted-globals,no-alert
Expand Down Expand Up @@ -1800,7 +1801,7 @@ export default {
this.showPermissionsModal = false;
},
findPossibleGroupForField() {
this.possibleGroupForField = this.groups.map(group => ({ id: group.pk, label: group.pk }));
this.possibleGroupsForField = this.groups.map(group => ({ id: group.pk, label: group.pk }));
},
},
};
Expand Down

0 comments on commit a790bb6

Please sign in to comment.