I've added some code to make a civicrmdata_contact field type maintain a target CRM group to draw contacts from. Since many installations have thousands of contacts, this is about the only way to do selection of contacts without using autocomplete; the same kind of approach would also make autocomplete easier to use.
Code does not require any database changes. Just apply the patch, blast your cache and you're good to go.
| Comment | File | Size | Author |
|---|---|---|---|
| restrict-by-group.patch.txt | 13.1 KB | Torenware |
Comments
Comment #1
mfredrickson commentedPatch committed.
I'm going to file a separate issue against civinode_group to allow for multi selects (in Group A OR Group B OR Group C....) and for an "all contacts" option for those rare cases where someone wants to select from all contacts, w/o respect to groups. The use case for this big select is when autocomplete hits and for users who are governed by ACLs. If the contact select honors the ACL system, the select list won't be the entire CRM database, only the contacts in the groups the logged in user can see.
-M
Comment #2
(not verified) commented