Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
restore collection ids on edit. resolves #174
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Feb 9, 2018
1 parent be491be commit b85f56c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/vault/vaultController.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@
if (returnVal.action === 'edit') {
var index = $scope.ciphers.indexOf(cipher);
if (index > -1) {
// restore collection ids since those cannot change on edit here.
returnVal.data.collectionIds = $rootScope.vaultCiphers[index].collectionIds;
$rootScope.vaultCiphers[index] = returnVal.data;
}
sortScopedCipherData();
Expand Down

0 comments on commit b85f56c

Please sign in to comment.