Friend tagging search not working correctly

Radosław Gościniak Posted in Component Development 8 years ago

I have problem with friend select (tagging) while adding post.
Search doesn`t work correctly, it only display all users not matched firstname or lastname.
How to fix this?

Replies
German Michael Zülsdorff Replied 8 years ago

Of course I can't guarantee whether this code change will make it to 4.3.2 ...
My pull request can be retrieved from:

https://github.com/opensource-socialnetwork/opensource-socialnetwork/pull/1011/files

Polish Radosław Gościniak Replied 8 years ago

Yes It is working :D can you publish the source code for this? :)

German Michael Zülsdorff Replied 8 years ago

I just had a look at the code and you are right: Currently it is implemented this way that you are getting a list of ALL friends, regardless of what you're typing in.

Okay, so I was trying to enhance this. And since you're already a member of http://games.z-mans.net, me and my girls Honey and Botox have sent you 3 friend requests in order to make you try out the new code.

Your tagging input is compared to the firstname now and you should only get the friends that are matching your input. You may use the asterisk * as a wildcard in the first position in case you don't remember your friend's names and get the complete list of all friends as before.

Check it out, and give feedback whether this is the way you wanted it.

Polish Radosław Gościniak Replied 8 years ago

Problem is that when I am typing I want only selected friends to show not all of them. Egz. when I am typing "Rade" I want to select only friends with first/last/username containing "Rade" but select box still showing all my friends not only those matching "Rade"...

German Michael Zülsdorff Replied 8 years ago

Please provide 2 users with

username | firstname | lastname

which do not appear in your friends list when trying to tag them