ElkArte Community

Title: Deleting Personal Message Conversation Randomly Fails
Post by: scripple on September 03, 2014, 12:07:59 am
So I use the conversation view of the personal message system and have noticed that clicking "Delete Conversation" often does nothing at all.  Or sometimes it deletes just the last message in the conversation.

I just clicked delete conversation and then ok on a series of messages about 10 times until it finally deleted them.  Not sure if this is a caching issue or actually not deleting.  No idea what makes it work sometimes and fail others.  Not the most helpful of error reports I grant you.  But could someone else at least see if works consistently for them.  (This is RC2.)
Title: Re: Deleting Personal Message Conversation Randomly Fails
Post by: Jorin on September 03, 2014, 12:13:09 am
I will try this later in my test forum.
Title: Re: Deleting Personal Message Conversation Randomly Fails
Post by: emanuele on September 03, 2014, 04:25:42 am
Random question: any error in the log related to the action?
Title: Re: Deleting Personal Message Conversation Randomly Fails
Post by: Ruth on September 03, 2014, 05:09:28 am
"Delete Conversation"  is always working perfekt in my forum, without any errors.
Title: Re: Deleting Personal Message Conversation Randomly Fails
Post by: scripple on September 03, 2014, 11:04:32 am
No errors in the logs.  No error message was displayed during the event.  It just took me back to the list of conversations.  Clicking the box next to a conversation and saying deleted selected didn't work either.
Title: Re: Deleting Personal Message Conversation Randomly Fails
Post by: emanuele on September 05, 2014, 05:11:14 pm
Okay I had time to dig this out.

In /sources/subs/PersonalMessage.subs.php:
Code: (find) [Select]
			'pm_heads' => array_keys($pm_heads),
Code: (replace with) [Select]
			'pm_heads' => $pm_heads,
I'm going to commit the change, in the meantime if you @scripple could you try this and confirm it works it would be very useful! :D
Title: Re: Deleting Personal Message Conversation Randomly Fails
Post by: scripple on September 06, 2014, 06:49:20 pm
Made the change and tried deleting a few conversations and they all deleted successfully.  Including one that failed before making the change.  So yes looks good.