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

match_column for more than one field? #21

Open
nillde opened this issue Jan 19, 2021 · 2 comments
Open

match_column for more than one field? #21

nillde opened this issue Jan 19, 2021 · 2 comments

Comments

@nillde
Copy link

nillde commented Jan 19, 2021

Hey I was trying to implement publicautocomplete for my site and tried to match match-column to organization name AND nick name which failed. Did I make a mistake in my code or is this simply not possible?

global $civicrm_setting;
$civicrm_setting['eu.tttp.publicautocomplete']['match_columns'] = array(
'organization_name',
'nick_name',
);

@twomice
Copy link
Collaborator

twomice commented Jan 19, 2021

Hi @nillde I don't think that will work. There is no match_columns config option per se. Rather, the correct option is named match_column (note the singular rather than plural naming), and it expects to be a column name such as 'organization_name' or
'nick_name', rather than an array of multiple column names.

@twomice
Copy link
Collaborator

twomice commented Jul 9, 2021

Tagged with "Enhancement", as this would be a legitimate improvement. We're open to reviewing PRs that would provide this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants