Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: pepa on February 02, 2018, 10:37:19 PM

Title: Searching on Member List
Post by: pepa on February 02, 2018, 10:37:19 PM
By default there are two radio buttons checked: 'Search by name' and 'Search by email address'

If you enter both search parameters e.g. Bill Smith [email protected] - the result is "Sorry, no matches were found" even though the information is in the member list database.

This is consistent across all search parameters.  However if you have two radio buttons checked and you enter only one search parameter a correct result is returned for that parameter.  Once again this is consistent across all search parameters.

I have tested this with more than two radio buttons checked and the results are the same.  As long as only one parameter is entered into the search field a correct result will be returned for that 'one' parameter regardless of how many radio buttons are checked.

This may not be a bug?  Perhaps the search feature on the member list is just a very simple search?  In which case it would be great if it's upgraded to also be able to search for parameter * parameter rather than just one parameter.
Title: Re: Searching on Member List
Post by: Sir Osis of Liver on February 02, 2018, 10:46:16 PM
Not really a bug, that's how it works.  You're not actually submitting multiple parameters, just a single search string, so if you combine name and email address there's no match.  By checking which fields to search, it allows you to submit a partial username or email address (i.e., all members with gmail.com addresses).
Title: Re: Searching on Member List
Post by: pepa on February 02, 2018, 10:48:08 PM
Quote from: Sir Osis of Liver on February 02, 2018, 10:46:16 PM
Not really a bug, that's how it works.  You're not actually submitting multiple parameters, just a single search string, so if you combine name and email address there's no match.  By checking which fields to search, it allows you to submit a partial username or email address (i.e., all members with gmail.com addresses).

OK, thanks for clearing that up.  Do you know if it's being upgraded to a more complex search in 2.1?
Title: Re: Searching on Member List
Post by: Sir Osis of Liver on February 02, 2018, 10:57:28 PM
Works the same in 2.1 beta 3.