{"action":"created","issue":{"url":"https://api.github.com/repos/civicrm/civicrm-core/issues/11349","repository_url":"https://api.github.com/repos/civicrm/civicrm-core","labels_url":"https://api.github.com/repos/civicrm/civicrm-core/issues/11349/labels{/name}","comments_url":"https://api.github.com/repos/civicrm/civicrm-core/issues/11349/comments","events_url":"https://api.github.com/repos/civicrm/civicrm-core/issues/11349/events","html_url":"https://github.com/civicrm/civicrm-core/pull/11349","id":278064381,"number":11349,"title":"CRM-21468: mailing recipients field limits how many groups can be selected","user":{"login":"monishdeb","id":3735621,"avatar_url":"https://avatars3.githubusercontent.com/u/3735621?v=4","gravatar_id":"","url":"https://api.github.com/users/monishdeb","html_url":"https://github.com/monishdeb","followers_url":"https://api.github.com/users/monishdeb/followers","following_url":"https://api.github.com/users/monishdeb/following{/other_user}","gists_url":"https://api.github.com/users/monishdeb/gists{/gist_id}","starred_url":"https://api.github.com/users/monishdeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monishdeb/subscriptions","organizations_url":"https://api.github.com/users/monishdeb/orgs","repos_url":"https://api.github.com/users/monishdeb/repos","events_url":"https://api.github.com/users/monishdeb/events{/privacy}","received_events_url":"https://api.github.com/users/monishdeb/received_events","type":"User","site_admin":false},"labels":[{"id":246037889,"url":"https://api.github.com/repos/civicrm/civicrm-core/labels/master","name":"master","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-30T10:12:20Z","updated_at":"2017-11-30T10:12:39Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/civicrm/civicrm-core/pulls/11349","html_url":"https://github.com/civicrm/civicrm-core/pull/11349","diff_url":"https://github.com/civicrm/civicrm-core/pull/11349.diff","patch_url":"https://github.com/civicrm/civicrm-core/pull/11349.patch"},"body":"Overview\r\n----------------------------------------\r\nWhen creating a mailing, the mailing recipients group currently limits how many groups (or mailings) can be selected. It appears that the option in search preferences for \"autocomplete results\" is not only determining how many records appear in the search result dropdown at a time, but also limits how many options can be selected. It should not be doing that. We should also do a bit of investigation to see if that behavior is impacting other instances of the Select2 widget.\r\n\r\nBefore\r\n----------------------------------------\r\nBased on count set for \"autocomplete results\" say 2, you can select only two recipient groups in 'New Mailing' screen. \r\n\r\nAfter\r\n----------------------------------------\r\nIrrespective of count set for \"autocomplete results\", you can choose any number of recipient groups.\r\n\r\nTechnical Details\r\n----------------------------------------\r\nIssue encountered due to changes made to getlist API where it took the default value for limit from ```search_autocomplete_count``` setting and this is [point](https://github.com/civicrm/civicrm-core/blob/master/api/v3/Generic/Getlist.php#L110). As per the fix, we are overriding limit with 0/unlimited.\n\n---\n\n * [CRM-21468: mailing recipients field limits how many groups can be selected](https://issues.civicrm.org/jira/browse/CRM-21468)"},"comment":{"url":"https://api.github.com/repos/civicrm/civicrm-core/issues/comments/348143107","html_url":"https://github.com/civicrm/civicrm-core/pull/11349#issuecomment-348143107","issue_url":"https://api.github.com/repos/civicrm/civicrm-core/issues/11349","id":348143107,"user":{"login":"monishdeb","id":3735621,"avatar_url":"https://avatars3.githubusercontent.com/u/3735621?v=4","gravatar_id":"","url":"https://api.github.com/users/monishdeb","html_url":"https://github.com/monishdeb","followers_url":"https://api.github.com/users/monishdeb/followers","following_url":"https://api.github.com/users/monishdeb/following{/other_user}","gists_url":"https://api.github.com/users/monishdeb/gists{/gist_id}","starred_url":"https://api.github.com/users/monishdeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monishdeb/subscriptions","organizations_url":"https://api.github.com/users/monishdeb/orgs","repos_url":"https://api.github.com/users/monishdeb/repos","events_url":"https://api.github.com/users/monishdeb/events{/privacy}","received_events_url":"https://api.github.com/users/monishdeb/received_events","type":"User","site_admin":false},"created_at":"2017-11-30T10:12:39Z","updated_at":"2017-11-30T10:12:39Z","author_association":"OWNER","body":"ping @lcdservices "}}
{"actor":{"display_login":"monishdeb"}}