MyBB Community Forums

Full Version: Problem with multiple recipients at PMs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Send a PM to multiple recipients and then have a look to the usernames of the recipients (see attached image).
Sometimes the names of the recipients are shown and sometimes not. I have also sent a PM on another board, where no username was shown at all but only N/A ("keine Angabe").....
I can't find an issue for it atm, but I'm pretty sure this has been reported before.
I can confirm the N/A issue here, sent a PM to ChandlerT, albania and Wabz - all were shown as N/A.

EDIT: and to be more specific, the bug only happens in Sent Items and other folders. If you search for the PM, the receipients will be correct in results.

Also, the code needs to be optimised. There is a redundant query to get the recipients in both places:
https://github.com/mybb/mybb/blob/featur...e.php#L325 (correct recipients)
https://github.com/mybb/mybb/blob/featur....php#L2186 (buggy)

While the queries below them select the receipients column in the same way anyways...:
https://github.com/mybb/mybb/blob/featur...e.php#L353
https://github.com/mybb/mybb/blob/featur....php#L2245

EDIT2:
Also, btw, sorting by sender doesn't seem to work correctly in PM search. No matter if you select ascending/descending. This line looks incorrect: https://github.com/mybb/mybb/blob/featur...e.php#L358 considering that $query_sortby is fromusername for username sorting: https://github.com/mybb/mybb/blob/featur...e.php#L268
			ORDER BY {$u}{$sortfield} {$mybb->input['order']}
should be:
			ORDER BY {$u}{$sortfield} {$sortordernow}
Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/1966

Thanks for contributing to MyBB!

Regards,
The MyBB Group
Hello when will this be added to mybb