Fix UI bug with cloning item while personal ownership is disabled (#1193)

This commit is contained in:
Vincent Salucci 2020-12-29 15:37:50 -06:00 committed by GitHub
parent bd3fdcab26
commit 3fc69f16d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -342,6 +342,11 @@ namespace Bit.App.Pages
if (CloneMode) if (CloneMode)
{ {
Cipher.Name += " - " + AppResources.Clone; 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 else