From 0cb8da2fd8e74b32b3fe38bcbbe5461853a5ab78 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Thu, 4 Nov 2021 07:27:15 +1000 Subject: [PATCH] Add Field.LinkedId (#1617) --- src/Core/Models/Api/CipherFieldModel.cs | 2 ++ src/Core/Models/Data/CipherFieldData.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Core/Models/Api/CipherFieldModel.cs b/src/Core/Models/Api/CipherFieldModel.cs index ff6d04985..a51db1497 100644 --- a/src/Core/Models/Api/CipherFieldModel.cs +++ b/src/Core/Models/Api/CipherFieldModel.cs @@ -14,6 +14,7 @@ namespace Bit.Core.Models.Api Type = data.Type; Name = data.Name; Value = data.Value; + LinkedId = data.LinkedId ?? null; } public FieldType Type { get; set; } @@ -21,5 +22,6 @@ namespace Bit.Core.Models.Api public string Name { get; set; } [EncryptedStringLength(5000)] public string Value { get; set; } + public int? LinkedId { get; set; } } } diff --git a/src/Core/Models/Data/CipherFieldData.cs b/src/Core/Models/Data/CipherFieldData.cs index 8aa91f685..b67680d27 100644 --- a/src/Core/Models/Data/CipherFieldData.cs +++ b/src/Core/Models/Data/CipherFieldData.cs @@ -12,10 +12,12 @@ namespace Bit.Core.Models.Data Type = field.Type; Name = field.Name; Value = field.Value; + LinkedId = field.LinkedId ?? null; } public FieldType Type { get; set; } public string Name { get; set; } public string Value { get; set; } + public int? LinkedId { get; set; } } }