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

FIX : search on extrafield type list must be list #11862

Closed

Conversation

atm-gauthier
Copy link
Contributor

No description provided.

{
$crit=$val;
$tmpkey=preg_replace('/search_options_/','',$key);
$searchclass='';
if (in_array($typeofextrafield, array('varchar', 'select'))) $searchclass='searchstring';
if (in_array($typeofextrafield, array('varchar'))) $searchclass='searchstring';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means we can't search anymore into an extrafields of type "select" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @eldy , i don't understand what you mean.
Until my PR, search on an extrafield of type "select" was an input text but the filter was made on key and not on value, and this makes no sense.
That's why i replaced that with a select list, which works well and is more logical for this kind of extrafield

@eldy eldy added the Discussion Some questions or discussions are opened and wait answers of author or other people to be processed label Sep 15, 2019
@eldy eldy closed this Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Some questions or discussions are opened and wait answers of author or other people to be processed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants