remove in category search
This commit is contained in:
@@ -33,21 +33,6 @@ class LinkCategoryTreeFieldView extends LinkFieldView {
|
||||
selectRecordsView = 'views/modals/select-category-tree-records'
|
||||
autocompleteDisabled = false
|
||||
|
||||
fetchSearch() {
|
||||
const data = super.fetchSearch();
|
||||
|
||||
if (!data) {
|
||||
return data;
|
||||
}
|
||||
|
||||
if (data.typeFront === 'is') {
|
||||
data.field = this.name;
|
||||
data.type = 'inCategory';
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
getUrl() {
|
||||
const id = this.model.get(this.idName);
|
||||
|
||||
|
||||
@@ -36,18 +36,6 @@ class LinkMultipleCategoryTreeFieldView extends LinkMultipleFieldView {
|
||||
getUrl(id) {
|
||||
return '#' + this.entityType + '/list/categoryId=' + id;
|
||||
}
|
||||
|
||||
fetchSearch() {
|
||||
const data = super.fetchSearch();
|
||||
|
||||
if (!data) {
|
||||
return data;
|
||||
}
|
||||
|
||||
data.type = 'inCategory';
|
||||
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
|
||||
Reference in New Issue
Block a user