Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We don't have a way to manipulate minchartosearch yet? #345

Open
Luke1982 opened this issue Aug 24, 2018 · 4 comments
Open

We don't have a way to manipulate minchartosearch yet? #345

Luke1982 opened this issue Aug 24, 2018 · 4 comments

Comments

@Luke1982
Copy link
Contributor

corebos/include/js/general.js

Lines 5274 to 5284 in db2e8cb

AutocompleteRelation.prototype.MinCharsToSearch = function () {
if (typeof this.data.mincharstosearch === 'number') {
return this.data.mincharstosearch;
} else if (typeof this.data.mincharstosearch === undefined) {
var ref_module = this.getReferenceModule();
if (ref_module !== '' && this.data.mincharstosearch[ref_module] !== undefined) {
return this.data.mincharstosearch[ref_module];
}
}
return 3;
};

@joebordes
Copy link
Contributor

The autocomplete map has a mincharstosearch directive which I remember testing when we implemented that map. Is that what you are looking for?

http://corebos.org/documentation/doku.php?id=en:adminmanual:businessmappings:globalsearch

@Luke1982
Copy link
Contributor Author

Well does that also work for individual autocomplete fields in stead of the global search? I'd like to be able to set a no. for a specific field since only there the string to search will be less than 3 characters.

@joebordes
Copy link
Contributor

I don't remember, but it should. Give it a try

@Luke1982
Copy link
Contributor Author

Will do and let you know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants