diff --git a/src/app/vault/vaultController.js b/src/app/vault/vaultController.js index d41c9b72ce..5f936ea854 100644 --- a/src/app/vault/vaultController.js +++ b/src/app/vault/vaultController.js @@ -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();