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"
|
return "family"
|
||||||
if obj_type in self.variable_types or obj_type in self.custom_variable_types:
|
if obj_type in self.variable_types or obj_type in self.custom_variable_types:
|
||||||
return "variable"
|
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)
|
raise DictConsistencyError(msg, 43, sources)
|
||||||
# in a leadership there is only variable
|
# in a leadership there is only variable
|
||||||
if family_is_leadership:
|
if family_is_leadership:
|
||||||
|
|
@ -452,7 +452,7 @@ class ParserVariable:
|
||||||
# convert to Calculation objects
|
# convert to Calculation objects
|
||||||
self.parse_parameters(
|
self.parse_parameters(
|
||||||
path,
|
path,
|
||||||
obj,
|
family_obj,
|
||||||
sources,
|
sources,
|
||||||
family_is_dynamic,
|
family_is_dynamic,
|
||||||
typ="family",
|
typ="family",
|
||||||
|
|
@ -460,7 +460,7 @@ class ParserVariable:
|
||||||
if self.load_unexist_redefine or exists in [None, True]:
|
if self.load_unexist_redefine or exists in [None, True]:
|
||||||
self.paths.add(
|
self.paths.add(
|
||||||
path,
|
path,
|
||||||
self.paths[path].model_copy(update=obj),
|
self.paths[path].model_copy(update=family_obj),
|
||||||
family_is_dynamic,
|
family_is_dynamic,
|
||||||
parent_dynamic,
|
parent_dynamic,
|
||||||
force=True,
|
force=True,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue