fix: do not update name
This commit is contained in:
parent
74d6ca8378
commit
29697ec122
1 changed files with 3 additions and 3 deletions
|
|
@ -278,7 +278,7 @@ class ParserVariable:
|
|||
return "family"
|
||||
if obj_type in self.variable_types or obj_type in self.custom_variable_types:
|
||||
return "variable"
|
||||
msg = _("unknown type {0} for {1}").format(obj_type, path)
|
||||
msg = _('unknown type "{0}" for "{1}"').format(obj_type, path)
|
||||
raise DictConsistencyError(msg, 43, sources)
|
||||
# in a leadership there is only variable
|
||||
if family_is_leadership:
|
||||
|
|
@ -452,7 +452,7 @@ class ParserVariable:
|
|||
# convert to Calculation objects
|
||||
self.parse_parameters(
|
||||
path,
|
||||
obj,
|
||||
family_obj,
|
||||
sources,
|
||||
family_is_dynamic,
|
||||
typ="family",
|
||||
|
|
@ -460,7 +460,7 @@ class ParserVariable:
|
|||
if self.load_unexist_redefine or exists in [None, True]:
|
||||
self.paths.add(
|
||||
path,
|
||||
self.paths[path].model_copy(update=obj),
|
||||
self.paths[path].model_copy(update=family_obj),
|
||||
family_is_dynamic,
|
||||
parent_dynamic,
|
||||
force=True,
|
||||
|
|
|
|||
Loading…
Reference in a new issue