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

View File

@ -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