Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/core#3082 enhance EntityRef to show create new link when contact listing is fil… #22830

Merged
merged 1 commit into from
Mar 9, 2022

Conversation

kurund
Copy link
Contributor

@kurund kurund commented Feb 25, 2022

Overview

Display create new option for EntityRef widget

Before

before

After

after

Code

$this->addEntityRef('my_field', ts('Select Contact'), [
  'api' => [
    'params' => ['contact_type' => ['IN' => ["Individual", "Organization"]]]
  ],
  'create' => TRUE,
]);

Comments

More details: https://lab.civicrm.org/dev/core/-/issues/3082

@civibot
Copy link

civibot bot commented Feb 25, 2022

(Standard links)

@civibot civibot bot added the master label Feb 25, 2022
@demeritcowboy demeritcowboy added the merge ready PR will be merged after a few days if there are no objections label Mar 6, 2022
@demeritcowboy demeritcowboy merged commit 8316756 into civicrm:master Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master merge ready PR will be merged after a few days if there are no objections
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants