Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants