From 3fc69f16d5ddd7a4000d6dd6c38ab952513edeeb Mon Sep 17 00:00:00 2001 From: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Date: Tue, 29 Dec 2020 15:37:50 -0600 Subject: [PATCH] Fix UI bug with cloning item while personal ownership is disabled (#1193) --- src/App/Pages/Vault/AddEditPageViewModel.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/App/Pages/Vault/AddEditPageViewModel.cs b/src/App/Pages/Vault/AddEditPageViewModel.cs index 0852a5bbf..7a2dd875c 100644 --- a/src/App/Pages/Vault/AddEditPageViewModel.cs +++ b/src/App/Pages/Vault/AddEditPageViewModel.cs @@ -342,6 +342,11 @@ namespace Bit.App.Pages if (CloneMode) { Cipher.Name += " - " + AppResources.Clone; + // If not allowing personal ownership, update cipher's org Id to prompt downstream changes + if (Cipher.OrganizationId == null && !AllowPersonal) + { + Cipher.OrganizationId = OrganizationId; + } } } else