Skip to content

Commit e37a68b

Browse files
Set Context for InternalModel
1 parent a0c67ed commit e37a68b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dotnet/src/dotnetcore/GxClasses.Web/Middleware/GXRestServices.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ internal void Initialize()
9292
if (restSDT != null)
9393
{
9494
restSDT.Sdt.Localize(context);
95+
restSDT.Sdt.context = context;
9596
return restSDT.InternalSdt;
9697
}
9798
else
@@ -104,9 +105,10 @@ internal void Initialize()
104105
if (restModel != null)
105106
{
106107
restModel.LoadCollection(internalModel);
107-
foreach(var item in internalModel)
108+
foreach(GxUserType item in internalModel)
108109
{
109110
item.Localize(context);
111+
item.context = context;
110112
}
111113
}
112114
}

0 commit comments

Comments
 (0)