Closed (fixed)
Project:
Privatemsg
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2010 at 11:33 UTC
Updated:
17 May 2010 at 17:50 UTC
Jump to comment: Most recent file
Us user 1 I go to other user profile and delete his messages.
I get status message:
* Deleted 23 threads.
* The previous action can be undone.
But messages are still in users inbox.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | privatemsg_delete_others_with_tests.patch | 5.77 KB | berdir |
| #1 | privatemsg_delete_others.patch | 3.38 KB | berdir |
Comments
Comment #1
berdirConfirmed. We don't pass the account object around currently.
Attached is a patch that should fix it, I want to write some tests for this too but this should be a starting point. The existing tests should atleast tell if this doesn't break anything else.
this also needs to be ported to 6.x-1.x and 7.x-1.x once it's done.
Comment #2
berdirComment #3
berdirSame changes as before, just with tests.
Comment #4
benone commentedCould you attach original files. I would like to test it also, just have no knowledge and soft to patch the module.
Comment #5
berdirPatching isn't that hard, check out http://drupal.org/patch.
Also, I've applied the patch to the recently (as in, today) created demo website, see http://demo.worldempire.ch. The admin user is pre-configured to have the read all private messages permission.
Comment #6
benone commentedI checked site. Patch works ok.
But believe me patching is a nightmare. I already tried doing this but without any results.
Did you commit also this critical bug patch which was anounced today about privatemsg to DEV 2.0 version ?
Let me know when the patch will be commited.
THanks
Comment #7
berdirHa, probably depends on the OS. On Linux, patching means executing two simple commands :)
Yes, the security fix has been commited to 2.x-dev too but since it is a development release, there was no official security announcement.
Ok, greating, thanks for testing, will commit this soon.
Comment #8
benone commentedYeay, on windows it's really annoying task..
Thanks for Re and I am waiting for commit.
Comment #9
berdirThanks for reporting and testing, the patch has been commited to all branches.
Comment #10
benone commentedHey I just updated 6.x-2.x-dev and still admin cant delete others users messages :(
The same what in the first post.
Comment #11
berdir-dev snapshots are only updated every 12h and has been updated on the third the last time. That means, you have to wait a few more hours :)