mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-27 17:18:04 +01:00
restore collection ids on edit. resolves #174
This commit is contained in:
parent
be491be2cd
commit
b85f56c681
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user