mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-27 16:03:52 +00:00
Account for keys and fields with null key in "add field" search terms (re: #5763)
This commit is contained in:
@@ -54,11 +54,16 @@ export function uiFormFields(context) {
|
||||
var moreFields = notShown.map(function(field) {
|
||||
var label = field.label();
|
||||
titles.push(label);
|
||||
|
||||
var terms = field.terms();
|
||||
if (field.key) terms.push(field.key);
|
||||
if (field.keys) terms = terms.concat(field.keys);
|
||||
|
||||
return {
|
||||
title: label,
|
||||
value: label,
|
||||
field: field,
|
||||
terms: field.terms().concat(field.key)
|
||||
terms: terms
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user