From e714769796af5fa07fc2d3b8cda4e4c9a418055b Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Wed, 19 Aug 2026 17:58:16 +0200 Subject: [PATCH] fix: in each layers a dynamic family could be add, so aggregate all of those families --- src/rougail/user_data.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/rougail/user_data.py b/src/rougail/user_data.py index b4cfa0ff4..83f1ab842 100644 --- a/src/rougail/user_data.py +++ b/src/rougail/user_data.py @@ -173,12 +173,11 @@ class UserData: # it's the good dynamic variable but it's not linked to a variable # so cannot change the variable continue - option_type = self.config.option(dynamic_variable).information.get( + option = self.config.option(dynamic_variable) + option_type = option.information.get( "type" ) - dyn_options_values = ( - self.config.option(dynamic_variable).get().impl_getdefault() - ) + dyn_options_values = option.value.default(uncalculated=True) if "{{ identifier }}" in dynamic_variable: for s in identifiers: dynamic_variable = dynamic_variable.replace( @@ -186,7 +185,7 @@ class UserData: ) # do not add values in variable if has already a value if dynamic_variable not in self.values and not dyn_options_values: - self.values[dynamic_variable] = [{"values": []}] + self.values[dynamic_variable] = [{"values": option.value.get()}] added.append(dynamic_variable) elif dynamic_variable not in added: continue