Skip to content

Commit

Permalink
Account for keys and fields with null key in "add field" search t…
Browse files Browse the repository at this point in the history
…erms (re: #5763)
  • Loading branch information
quincylvania committed Aug 23, 2019
1 parent 6c3d767 commit 6bd075d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/ui/form_fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
});

Expand Down

0 comments on commit 6bd075d

Please sign in to comment.