fix: in each layers a dynamic family could be add, so aggregate all of those families
This commit is contained in:
parent
053228753d
commit
e714769796
1 changed files with 4 additions and 5 deletions
|
|
@ -173,12 +173,11 @@ class UserData:
|
||||||
# it's the good dynamic variable but it's not linked to a variable
|
# it's the good dynamic variable but it's not linked to a variable
|
||||||
# so cannot change the variable
|
# so cannot change the variable
|
||||||
continue
|
continue
|
||||||
option_type = self.config.option(dynamic_variable).information.get(
|
option = self.config.option(dynamic_variable)
|
||||||
|
option_type = option.information.get(
|
||||||
"type"
|
"type"
|
||||||
)
|
)
|
||||||
dyn_options_values = (
|
dyn_options_values = option.value.default(uncalculated=True)
|
||||||
self.config.option(dynamic_variable).get().impl_getdefault()
|
|
||||||
)
|
|
||||||
if "{{ identifier }}" in dynamic_variable:
|
if "{{ identifier }}" in dynamic_variable:
|
||||||
for s in identifiers:
|
for s in identifiers:
|
||||||
dynamic_variable = dynamic_variable.replace(
|
dynamic_variable = dynamic_variable.replace(
|
||||||
|
|
@ -186,7 +185,7 @@ class UserData:
|
||||||
)
|
)
|
||||||
# do not add values in variable if has already a value
|
# do not add values in variable if has already a value
|
||||||
if dynamic_variable not in self.values and not dyn_options_values:
|
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)
|
added.append(dynamic_variable)
|
||||||
elif dynamic_variable not in added:
|
elif dynamic_variable not in added:
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue