From 8e9d07f870aa0a8dfe2e4a582cb506be7ecd8b83 Mon Sep 17 00:00:00 2001 From: Daniel James Smith Date: Fri, 5 Dec 2025 15:11:28 +0100 Subject: [PATCH] Ensure a selected collectionId in the vault filter is passed on to a newly created cipher. Fixes #15485 --- apps/desktop/src/vault/app/vault/vault-v2.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src/vault/app/vault/vault-v2.component.ts b/apps/desktop/src/vault/app/vault/vault-v2.component.ts index 8f58628e3b0..50cd104892b 100644 --- a/apps/desktop/src/vault/app/vault/vault-v2.component.ts +++ b/apps/desktop/src/vault/app/vault/vault-v2.component.ts @@ -34,7 +34,7 @@ import { MessagingService } from "@bitwarden/common/platform/abstractions/messag import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service"; import { getByIds } from "@bitwarden/common/platform/misc"; import { SyncService } from "@bitwarden/common/platform/sync"; -import { CipherId, OrganizationId, UserId } from "@bitwarden/common/types/guid"; +import { CipherId, CollectionId, OrganizationId, UserId } from "@bitwarden/common/types/guid"; import { CipherArchiveService } from "@bitwarden/common/vault/abstractions/cipher-archive.service"; import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service"; import { FolderService } from "@bitwarden/common/vault/abstractions/folder/folder.service.abstraction"; @@ -995,6 +995,7 @@ export class VaultV2Component ...this.config.initialValues, organizationId: this.addOrganizationId as OrganizationId, folderId: this.folderId, + collectionIds: this.addCollectionIds as CollectionId[], }; }