?
avatar PhilETaylor
PhilETaylor
13 Nov 2016

Steps to reproduce the issue

Forked issue from #12881

Create an admin and a frontend user with article submission rights on frontend (like Author)

On my site I have an admin and a Front End Author

The front end author submits 3 articles on the front end - this generates 3 messages in my private inbox in Joomla Admin.

If someone then deletes that "front end author" then I'm now suck with "(3) Messages" in my admin footer but no messages in my com_messages screen

Expected result

0 Messages in footer...
or
3 messages viewable in mailbox

Actual result

screen shot 2016-11-13 at 20 56 14

System information (as much as possible)

https://gist.github.com/b5c59df75d1de2ff08922c46796cae3e

avatar PhilETaylor PhilETaylor - open - 13 Nov 2016
avatar joomla-cms-bot joomla-cms-bot - change - 13 Nov 2016
Labels Added: ?
avatar PhilETaylor PhilETaylor - change - 13 Nov 2016
The description was changed
avatar PhilETaylor PhilETaylor - edited - 13 Nov 2016
avatar brianteeman brianteeman - change - 14 Nov 2016
Category com_messages
avatar tonypartridge
tonypartridge - comment - 30 Nov 2016

Replicated the issue.

I would advise we add a delete messages query to onUserAfterDelete function within PlgUserJoomla to clear up the orphaned messages given messages is a core component.

In fact, going back to your first post to an extent. We could look at having the plugin look for certain 'deletion' files within components to avoid developers having to write multiple plugins to manage this.

avatar alikon alikon - reference | a61a5db - 1 Dec 16
avatar alikon
alikon - comment - 1 Dec 2016

Expected result

0 Messages in footer...
or
3 messages viewable in mailbox

delete the messages items from that user ,
for test #13052

avatar zero-24 zero-24 - change - 1 Dec 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-12-01 22:38:04
Closed_By zero-24
avatar zero-24 zero-24 - close - 1 Dec 2016

Add a Comment

Login with GitHub to post a comment