From 773e0135f7ae374f3f18367edd1026e71de4b4ef Mon Sep 17 00:00:00 2001 From: Daniel Skovli Date: Fri, 10 May 2024 13:03:33 +0200 Subject: [PATCH 1/3] Inject `CurrentTask.ElementId` in `CreateDataElement` --- src/Services/Storage/Implementation/InstanceService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/Storage/Implementation/InstanceService.cs b/src/Services/Storage/Implementation/InstanceService.cs index 8b4a0081..39d27c75 100644 --- a/src/Services/Storage/Implementation/InstanceService.cs +++ b/src/Services/Storage/Implementation/InstanceService.cs @@ -75,7 +75,7 @@ public InstanceService(IInstanceRepository instanceRepository, IDataService data $"{signRequest.SignatureDocumentDataType}.json", 0, userId.ToString(), - null); + instance.Process.CurrentTask?.ElementId); signDocument.Id = dataElement.Id; From fccd94ad311e2e8db1bc5ff957f52ead3fd3c367 Mon Sep 17 00:00:00 2001 From: Daniel Skovli Date: Mon, 13 May 2024 14:19:36 +0200 Subject: [PATCH 2/3] Use `SignRequest.GeneratedFromTask` instead of `CurrentTask.ElementId` --- src/Services/Storage/Implementation/InstanceService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/Storage/Implementation/InstanceService.cs b/src/Services/Storage/Implementation/InstanceService.cs index 39d27c75..16e450ed 100644 --- a/src/Services/Storage/Implementation/InstanceService.cs +++ b/src/Services/Storage/Implementation/InstanceService.cs @@ -75,7 +75,7 @@ public InstanceService(IInstanceRepository instanceRepository, IDataService data $"{signRequest.SignatureDocumentDataType}.json", 0, userId.ToString(), - instance.Process.CurrentTask?.ElementId); + signRequest.GeneratedFromTask); signDocument.Id = dataElement.Id; From e751c5fd094c167ec6b5832f030c0852b63876a2 Mon Sep 17 00:00:00 2001 From: Daniel Skovli Date: Tue, 14 May 2024 13:02:22 +0200 Subject: [PATCH 3/3] Bumps `Altinn.Platform.Storage.Interface` --- src/LocalTest.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LocalTest.csproj b/src/LocalTest.csproj index 00fe4cc2..57ebb5b1 100644 --- a/src/LocalTest.csproj +++ b/src/LocalTest.csproj @@ -13,7 +13,7 @@ - +