[RSS Feed/News] Conversation::recipientRemoved & Finder compatibility issue

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Conversation::recipientRemoved requires the User relationship which is a key'ed FinderCollection to be loaded with all records, except if the conversation was loading with a finder Conversation.User|{$userId} this can result in the recipientRemoved function unexpectedly deleting the conversation.

It looks like the fix is simple;
PHP:

Code:
/** @var \XF\Mvc\Entity\FinderCollection $users */
$users = $this->Users;
$users->populate()...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom