User tests: Successful: Unsuccessful:
Pull Request resolves #46338
This PR fixes the conditional rendering of the update package message in the Upload & Update view.
Previously, the code accessed $this->updateInfo['object'] directly without verifying its existence, which could lead to undefined index notices and inconsistent message behavior.
Fix implemented:
isset() check before validating the object.This change is minimal and limited strictly to the relevant conditional block without any refactoring.
Navigate to:
Administrator → System → Joomla Update → Upload & Update
Perform the following tests:
Ensure Joomla has an available update.
Verify:
When no update is available:
Verify:
Temporarily simulate missing update object:
unset($this->updateInfo['object']);OR:
$this->updateInfo['object'] = null;Reload the Upload & Update page.
Verify:
$this->updateInfo['object'] could cause undefined index warnings.Before Fix (Video):
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration com_joomlaupdate |
| Labels |
Added:
PR-6.2-dev
|
||