Skip to content
Snippets Groups Projects
Commit 86f6069e authored by colemanw's avatar colemanw
Browse files

SearchKit - Fix UI to allow aggregation of custom fields

Fixes #3143
parent 4775ec6f
No related branches found
No related tags found
No related merge requests found
......@@ -429,7 +429,7 @@
}
var arg = _.findWhere(searchMeta.parseExpr(col).args, {type: 'field'}) || {};
// If the column is not a database field, no
if (!arg.field || !arg.field.entity || arg.field.type !== 'Field') {
if (!arg.field || !arg.field.entity || !_.includes(['Field', 'Custom'], arg.field.type)) {
return false;
}
// If the column is used for a groupBy, no
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment