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 }));