1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-28 17:27:50 +01:00

restore collection ids on edit. resolves #174

This commit is contained in:
Kyle Spearrin 2018-02-09 10:39:02 -05:00
parent be491be2cd
commit b85f56c681

View File

@ -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();