From: colemanw Date: Tue, 16 Jan 2024 12:28:00 +0000 (-0500) Subject: SearchKit - Fix missing transformations in UI X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=893d445eca3896540815ba84f4aedf9340bfb171;p=civicrm-core.git SearchKit - Fix missing transformations in UI This regressed during e3ad1ff86b89539d5f6718cb155cdd59c8a07f37 --- diff --git a/ext/search_kit/ang/crmSearchAdmin/crmSearchFunction.component.js b/ext/search_kit/ang/crmSearchAdmin/crmSearchFunction.component.js index 25e472b5b3..754e25c924 100644 --- a/ext/search_kit/ang/crmSearchAdmin/crmSearchFunction.component.js +++ b/ext/search_kit/ang/crmSearchAdmin/crmSearchFunction.component.js @@ -105,7 +105,8 @@ if (ctrl.expr && ctrl.fieldArg) { if (ctrl.mode !== 'groupBy' && ctrl.crmSearchAdmin.canAggregate(ctrl.expr)) { allowedTypes.push('aggregate'); - } else { + } + if (ctrl.mode === 'groupBy' || !ctrl.crmSearchAdmin.mustAggregate(ctrl.expr)) { allowedTypes.push('comparison', 'string'); if (_.includes(['Integer', 'Float', 'Date', 'Timestamp', 'Money'], ctrl.fieldArg.field.data_type)) { allowedTypes.push('math');