mirror of
https://github.com/bitwarden/web
synced 2025-12-10 13:23:15 +00:00
resolve issues with id on api calls
This commit is contained in:
@@ -67,14 +67,17 @@
|
||||
|
||||
if (!group.accessAll) {
|
||||
group.collectionIds = [];
|
||||
for (var id in $scope.selectedCollections) {
|
||||
if ($scope.selectedCollections.hasOwnProperty(id)) {
|
||||
group.collectionIds.push(id);
|
||||
for (var collId in $scope.selectedCollections) {
|
||||
if ($scope.selectedCollections.hasOwnProperty(collId)) {
|
||||
group.collectionIds.push(collId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$scope.submitPromise = apiService.groups.put({ orgId: $state.params.orgId }, group, function (response) {
|
||||
$scope.submitPromise = apiService.groups.put({
|
||||
orgId: $state.params.orgId,
|
||||
id: id
|
||||
}, group, function (response) {
|
||||
$analytics.eventTrack('Edited Group');
|
||||
$uibModalInstance.close({
|
||||
id: response.Id,
|
||||
|
||||
Reference in New Issue
Block a user