Skip to content

EspoCRM – Open Source CRM Application

fix link category parent field

Yuri Kuznetsov02f1e94c866c
diff --git a/client/src/views/fields/link-category-tree.js b/client/src/views/fields/link-category-tree.js
index 70c2b0d237..0ea2afe275 100644
--- a/client/src/views/fields/link-category-tree.js
+++ b/client/src/views/fields/link-category-tree.js
@@ -34,6 +34,11 @@ class LinkCategoryTreeFieldView extends LinkFieldView {
autocompleteDisabled = false
getUrl() {
+ if (this.getMetadata().get(`scopes.${this.entityType}.type`) === 'CategoryTree') {
+ // Can be used for the 'parent' field of the category entity type.
+ return super.getUrl();
+ }
+
const id = this.model.get(this.idName);
if (!id) {