From 8ef116c9a764ea31052802696ebe896bb37a483e Mon Sep 17 00:00:00 2001 From: likp Date: Thu, 19 Dec 2024 13:29:16 +0100 Subject: [PATCH] Reapply the current ValueSet to make sure that the list of value are updated. --- PxWeb/Code/Api2/DataSelection/SelectionHandler.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PxWeb/Code/Api2/DataSelection/SelectionHandler.cs b/PxWeb/Code/Api2/DataSelection/SelectionHandler.cs index 2abda297..dd9e4a99 100644 --- a/PxWeb/Code/Api2/DataSelection/SelectionHandler.cs +++ b/PxWeb/Code/Api2/DataSelection/SelectionHandler.cs @@ -1155,6 +1155,10 @@ public bool UseDefaultSelection(VariablesSelection? variablesSelection) { builder.ApplyGrouping(variable.Code, variable.GetGroupingInfoById(variable.CurrentGrouping.ID), GroupingIncludesType.AggregatedValues); } + else if (variable.CurrentValueSet != null) + { + builder.ApplyValueSet(variable.Code, variable.CurrentValueSet); + } } var contents = meta.Variables.FirstOrDefault(v => v.IsContentVariable);