fix select related

This commit is contained in:
Yuri Kuznetsov
2020-06-06 10:04:02 +03:00
parent 2cc4c8f974
commit f319be61d2
+1 -1
View File
@@ -290,7 +290,7 @@ define('views/detail', 'views/main', function (Dep) {
}
}
} else {
var foreignLink = this.model.defs['links'][link].foreign;
var foreignLink = (this.model.defs['links'][link] || {}).foreign;
if (foreignLink && scope) {
var foreignLinkType = this.getMetadata().get(['entityDefs', scope, 'links', foreignLink, 'type']);
var foreignLinkFieldType = this.getMetadata().get(['entityDefs', scope, 'fields', foreignLink, 'type']);