Merge pull request #2771 from pratu16x7/link-field-string-condition

[minor] link field autocomplete
This commit is contained in:
Nabin Hait 2017-02-27 14:44:50 +05:30 committed by GitHub
commit 9f7ae751e2

View file

@ -1317,7 +1317,7 @@ frappe.ui.form.ControlLink = frappe.ui.form.ControlData.extend({
filter: function(item, input) {
var value = item.value.toLowerCase();
if(value.indexOf('__link_option') !== -1 ||
value.indexOf(input) !== -1) {
value.indexOf(input.toLowerCase()) !== -1) {
return true;
}
},