Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C CiviCRM Core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,372
    • Issues 1,372
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • CiviCRM Core
  • Issues
  • #1321
Closed
Open
Created Oct 16, 2019 by Rich@artfulrobotDeveloper

group.get API (v3- but lets fix for v4) fails to find groups of one group_type if group has multiple types

We used (5.15) to be able to filter for mailing groups with the API and now we can't. I'm not sure when this came in.

e.g. on a buildkit at 58e7f004

cv api Group.get return='id,title,group_type'

Returns

{
    "is_error": 0,
    "version": 3,
    "count": 4,
    "values": {
        "1": {
            "id": "1",
            "title": "Administrators",
            "group_type": [
                "1"
            ]
        },
        "2": {
            "id": "2",
            "title": "Newsletter Subscribers",
            "group_type": [
                "1",
                "2"
            ]
        },
        "3": {
            "id": "3",
            "title": "Summer Program Volunteers",
            "group_type": [
                "1",
                "2"
            ]
        },
        "4": {
            "id": "4",
            "title": "Advisory Board",
            "group_type": [
                "1",
                "2"
            ]
        }
    }
}

But

cv api Group.get return='id,title,group_type' group_type='Mailing List'
cv api Group.get return='id,title,group_type' group_type=2

returns none.

On 5.15 Mailing groups are returned properly.

Edited Apr 29, 2021 by eileen
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking