diff --git a/administrator/components/com_installer/src/Model/ManageModel.php b/administrator/components/com_installer/src/Model/ManageModel.php index 841a20c16d773..b283fa05b4dbe 100644 --- a/administrator/components/com_installer/src/Model/ManageModel.php +++ b/administrator/components/com_installer/src/Model/ManageModel.php @@ -408,7 +408,16 @@ public function loadChangelog($eid, $source) ] ) ) - ->select($db->quoteName('updates.version', 'updateVersion')) + ->select($db->quoteName( + [ + 'updates.version', + 'updates.changelogurl', + ], + [ + 'updateVersion', + 'updateChangelogUrl', + ] + )) ->from($db->quoteName('#__extensions', 'extensions')) ->join( 'LEFT', @@ -423,13 +432,15 @@ public function loadChangelog($eid, $source) $this->translate($extensions); $extension = array_shift($extensions); - if (!$extension->changelogurl) { + $changelogurl = $source === 'manage' ? $extension->changelogurl : $extension->updateChangelogUrl; + + if (!$changelogurl) { return ''; } $changelog = new Changelog(); $changelog->setVersion($source === 'manage' ? $extension->version : $extension->updateVersion); - $changelog->loadFromXml($extension->changelogurl); + $changelog->loadFromXml($changelogurl); // Read all the entries $entries = [