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:
parent
be491be2cd
commit
b85f56c681
@ -205,6 +205,8 @@
|
|||||||
if (returnVal.action === 'edit') {
|
if (returnVal.action === 'edit') {
|
||||||
var index = $scope.ciphers.indexOf(cipher);
|
var index = $scope.ciphers.indexOf(cipher);
|
||||||
if (index > -1) {
|
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;
|
$rootScope.vaultCiphers[index] = returnVal.data;
|
||||||
}
|
}
|
||||||
sortScopedCipherData();
|
sortScopedCipherData();
|
||||||
|
Loading…
Reference in New Issue
Block a user