mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-29 07:26:05 +00:00
autocompete no order
This commit is contained in:
@@ -199,7 +199,7 @@ define('views/fields/link-multiple', 'views/fields/base', function (Dep) {
|
||||
},
|
||||
|
||||
getAutocompleteUrl: function () {
|
||||
var url = this.foreignScope + '?orderBy=name&maxSize=' + this.getAutocompleteMaxCount();
|
||||
var url = this.foreignScope + '?&maxSize=' + this.getAutocompleteMaxCount();
|
||||
|
||||
if (!this.forceSelectAllAttributes) {
|
||||
var select = ['id', 'name'];
|
||||
|
||||
@@ -230,7 +230,7 @@ define('views/fields/link-parent', 'views/fields/base', function (Dep) {
|
||||
},
|
||||
|
||||
getAutocompleteUrl: function () {
|
||||
var url = this.foreignScope + '?orderBy=name&maxSize=' + this.getAutocompleteMaxCount();
|
||||
var url = this.foreignScope + '?maxSize=' + this.getAutocompleteMaxCount();
|
||||
|
||||
if (!this.isForceSelectAllAttributes()) {
|
||||
var select = ['id', 'name'];
|
||||
|
||||
@@ -256,7 +256,7 @@ define('views/fields/link', 'views/fields/base', function (Dep) {
|
||||
},
|
||||
|
||||
getAutocompleteUrl: function () {
|
||||
var url = this.foreignScope + '?orderBy=name&maxSize=' + this.getAutocompleteMaxCount();
|
||||
var url = this.foreignScope + '?maxSize=' + this.getAutocompleteMaxCount();
|
||||
|
||||
if (!this.forceSelectAllAttributes) {
|
||||
var select = ['id', 'name'];
|
||||
|
||||
@@ -104,7 +104,7 @@ define('views/fields/user', 'views/fields/link', function (Dep) {
|
||||
|
||||
$elemeneTeams.autocomplete({
|
||||
serviceUrl: function (q) {
|
||||
return 'Team?orderBy=name&maxSize=' + this.getAutocompleteMaxCount() + '&select=id,name';
|
||||
return 'Team?&maxSize=' + this.getAutocompleteMaxCount() + '&select=id,name';
|
||||
}.bind(this),
|
||||
minChars: 1,
|
||||
triggerSelectOnValidInput: false,
|
||||
|
||||
Reference in New Issue
Block a user