Skip to content

Commit 563fb90

Browse files
authored
[Bug]: Relations: Do not load nice path if "fullpath" is not a visible field (#831)
1 parent 9617358 commit 563fb90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/pimcore/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2743,7 +2743,7 @@ pimcore.helpers.requestNicePathData = function (source, targets, config, fieldCo
27432743
return;
27442744
}
27452745

2746-
if (!config.loadEditModeData && (typeof targets === "undefined" || !fieldConfig.pathFormatterClass)) {
2746+
if (!config.loadEditModeData && (typeof targets === "undefined" || !fieldConfig.pathFormatterClass || (typeof fieldConfig.visibleFields === "string" && fieldConfig.visibleFields !== '' && fieldConfig.visibleFields.split(',').indexOf('fullpath') === -1))) {
27472747
return;
27482748
}
27492749

0 commit comments

Comments
 (0)