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
0 Messages in footer...
or
3 messages viewable in mailbox
Labels |
Added:
?
|
Category | ⇒ | com_messages |
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-12-01 22:38:04 |
Closed_By | ⇒ | zero-24 |
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.