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
1 changed files with 2 additions and 0 deletions

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