From c7552fe9331c777b4d9e033aa84f949ce247d1fe Mon Sep 17 00:00:00 2001 From: likp Date: Mon, 2 Jun 2025 15:25:32 +0200 Subject: [PATCH] Fixed a case insensitive compare on the pivot to stub method --- PxWeb/Code/Api2/DataWorkflow.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PxWeb/Code/Api2/DataWorkflow.cs b/PxWeb/Code/Api2/DataWorkflow.cs index 1d13f91d..7213358a 100644 --- a/PxWeb/Code/Api2/DataWorkflow.cs +++ b/PxWeb/Code/Api2/DataWorkflow.cs @@ -125,9 +125,10 @@ public DataWorkflow(IDataSource datasource, ISelectionHandler selectionHandler, VariablePlacement = PlacementType.Heading })); + descriptions.AddRange(placment.Stub.Select(h => new PivotDescription() { - VariableName = model.Meta.Variables.First(v => v.Code == h).Name, + VariableName = model.Meta.Variables.First(v => v.Code.Equals(h, StringComparison.OrdinalIgnoreCase)).Name, VariablePlacement = PlacementType.Stub }));