mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
restore collection ids on edit. resolves #174
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user