Search.Search should go on normally, no error given on the window underneath, and then a selection could be made.
Error shows on Compose Window underneath the pop-up, saying Invalid email address.

From this forum thread. Thanks to user pstevens for reporting and for the nice screenshot.
I would say this is High Priority.
Hi @pgorod we had same issue, but i did not have any time to report it.. here is message from my developer :)
"this is the description of the bug:
Issue:
When compose email and click an icon to select a contact/user/account from popup, if you just select an item from list it works.
But if you do a search first, then select an item from search results, doesn't works anymore.
Cause:
The problem is that when you click search button, the form is submitted and the page is reloaded. This means that the "beforeunload" event for popupWindow is already triggered, and is trying to process returned data, but is too early because there is no returned data from popup at this step.
Fix:
To fix this I've moved processing of returned data in another callback function.
Files changed:
/jssource/src_files/include/javascript/popup_helper.js
/modules/Emails/include/ComposeView/EmailsComposeView.js"
Can u please explain me solution in detail? I am not getting what exact changes you did.
Thanks in advance.
I am still getting the same error even with a repair rebuild. I have verified that the files are exactly the same as the published fixed ones here. I am on 7.9.4
I can verify that this is still an issue on 7.9.6
@pstevens71 do you mean with, or without the fix proposed above?
Without. I just double checked the files in 7.9.6 and they don't contain the fix. I'm updating them now to your proposed fix. I'll post the result. Thanks for getting back.
So I applied the proposed fix. It does get rid of the error when selecting a contact to send the email to. However, the contact that is selected doesn't populate the "To:" field.
(I also did a repair and rebuild)
This is still or should be an open issue. Still a problem in 7.9.15
There are various threads for the same issue, but I can' t seem to find a solution.
You can not also select a Document if you apply a custom search or navigate to next page. This is caused by:
As @Mausino has said.
Most helpful comment
Hi @pgorod we had same issue, but i did not have any time to report it.. here is message from my developer :)
"this is the description of the bug:
Issue:
When compose email and click an icon to select a contact/user/account from popup, if you just select an item from list it works.
But if you do a search first, then select an item from search results, doesn't works anymore.
Cause:
The problem is that when you click search button, the form is submitted and the page is reloaded. This means that the "beforeunload" event for popupWindow is already triggered, and is trying to process returned data, but is too early because there is no returned data from popup at this step.
Fix:
To fix this I've moved processing of returned data in another callback function.
Files changed:
/jssource/src_files/include/javascript/popup_helper.js
/modules/Emails/include/ComposeView/EmailsComposeView.js"