Title normalization hot fix

This commit is contained in:
2026-05-21 21:14:25 +02:00
parent 74c5ea34e1
commit 6790274d95
3 changed files with 64 additions and 8 deletions
+8 -8
View File
@@ -1898,18 +1898,18 @@ func buildFamilyExpansionGeneratedModule(path string, obj map[string]any, ctx *f
override[field] = map[string]any{"id": prereqKey}
}
}
if spec.NamePrefix != "" {
override["FEAT"] = map[string]any{
"tlk": map[string]any{
"key": featKey + ".name",
"text": fmt.Sprintf("%s (%s)", spec.NamePrefix, titleChildName),
},
}
}
if !ctx.featKeyExists(featKey) {
if spec.LabelPrefix != "" {
override["LABEL"] = spec.LabelPrefix + "_" + labelSuffix
}
if spec.NamePrefix != "" {
override["FEAT"] = map[string]any{
"tlk": map[string]any{
"key": featKey + ".name",
"text": fmt.Sprintf("%s (%s)", spec.NamePrefix, titleChildName),
},
}
}
for _, field := range spec.TemplateFields {
override[field] = map[string]any{"field": field, "ref": spec.Template}
}