User tests: Successful: Unsuccessful:
When a user/author is deleted in Joomla, their articles retain the original `created_by` ID which becomes orphaned (or 0). Opening such an article in the admin shows an empty/invalid author field. Saving the article preserves the broken state.
```bash
npm run cypress:run -- --spec "tests/System/integration/administrator/components/com_content/ArticleOrphanedAuthor.cy.js"
```
Fixes #47995
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration com_content Libraries JavaScript Unit Tests |
| Labels |
Added:
Unit/System Tests
PR-6.2-dev
|
||
@brianteeman - valid point, and appreciated.
The orphaned created_by problem can technically affect any component with that column. However, expanding this fix to AdminModel::save() now would touch the most-used base class across all of Joomla and would require considerably broader testing and review across every component.
This PR is intentionally scoped to com_content to:
Happy to file a follow-up issue to track the broader fix for other components if that would help. If the consensus is that this should be fixed in the base class in this PR, I can attempt that - just flagging the expanded risk/testing scope.
Is this really the best option. It is explicitly just for articles but the same problem can occur right across joomla