Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D Developer Documentation
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 17
    • Issues 17
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DocumentationDocumentation
  • Docs
  • Developer Documentation
  • Merge requests
  • !1023

Search kit: Document how to get selected ids for non-contact search tasks

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged DaveD requested to merge DaveD/dev:params into master Aug 25, 2022
  • Overview 6
  • Commits 1
  • Pipelines 0
  • Changes 1

Normally when coming from search the id list is populated for you here: https://github.com/civicrm/civicrm-core/blob/a92bc20c51e280141666362eae15d0399fc33555/CRM/Contribute/Form/Task.php#L55 and your existing code is likely expecting that.

For contact searches, searchkit sends cids instead of id, and so it gets picked up the same as normal and sets $this->_contactIds so you don't need to do anything extra. But for e.g. contributions you need to retrieve id yourself.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: params