X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=js%2Fjquery%2Fjquery.crmProfileSelector.js;h=bb09f4335139770429cc6f2bc9daf0945cefc23c;hb=58cb13f8bfa693af1dcf19e5eb24e13d77da2d14;hp=ab6d7f55c44910309b66c7457dffa51c796c3946;hpb=37375016dc27c2b4e9f0f3357e46545b08113f42;p=civicrm-core.git diff --git a/js/jquery/jquery.crmProfileSelector.js b/js/jquery/jquery.crmProfileSelector.js index ab6d7f55c4..bb09f43351 100644 --- a/js/jquery/jquery.crmProfileSelector.js +++ b/js/jquery/jquery.crmProfileSelector.js @@ -33,7 +33,8 @@ if (options.groupTypeFilter) { matchingUfGroups = ufGroupCollection.subcollection({ filter: function(ufGroupModel) { - if(!$.isEmptyObject(options.usedByFilter)) { + //CRM-16915 - filter with module used by the profile + if (!$.isEmptyObject(options.usedByFilter)) { usedByFilter = options.usedByFilter; } return ufGroupModel.checkGroupType(options.groupTypeFilter, options.allowAllSubtypes, usedByFilter);