Skip to content

Commit e3f1b3b

Browse files
robertSt7blankse
andauthored
[Bug]: Changing Data-Hub display of fields to Names instead of Titles (#575)
* Fix: Display field name if title is empty instead of "Root" * Update src/Resources/public/js/fieldConfigDialog.js Co-authored-by: Sebastian Blank <[email protected]> Co-authored-by: Sebastian Blank <[email protected]>
1 parent 8ff7be0 commit e3f1b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/public/js/fieldConfigDialog.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ pimcore.plugin.datahub.fieldConfigDialog = Class.create({
242242
child = child[0];
243243
} else {
244244
var attributes = nodeConf.attributes;
245-
var text = ts(attributes.label);
245+
let text = attributes.label ? t(attributes.label) : `(${attributes.attribute})`;
246246

247247
if (attributes.dataType !== "system" && this.showFieldname && attributes.key) {
248248
text = text + " (" + attributes.key.replace("~", ".") + ")";

0 commit comments

Comments
 (0)