From a46d678d6e87826d8d1dbfb39c1ec4063a43dfbb Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Thu, 17 Dec 2020 11:19:14 -0600 Subject: [PATCH] Fix Organization put drops cipher updates (#1044) --- src/Api/Controllers/CiphersController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/Controllers/CiphersController.cs b/src/Api/Controllers/CiphersController.cs index 8eafd87756..20cab384a4 100644 --- a/src/Api/Controllers/CiphersController.cs +++ b/src/Api/Controllers/CiphersController.cs @@ -187,7 +187,7 @@ namespace Bit.Api.Controllers } // object cannot be a descendant of CipherDetails, so let's clone it. - var cipherClone = cipher.Clone(); + var cipherClone = model.ToCipher(cipher).Clone(); await _cipherService.SaveAsync(cipherClone, userId, model.LastKnownRevisionDate, null, true, false); var response = new CipherMiniResponseModel(cipherClone, _globalSettings, cipher.OrganizationUseTotp);