User tests: Successful: Unsuccessful:
Pull Request for Issue #43668 .
Do the same extension load in the checkExistingExtension as for InstallerAdapter
Try to install a plugin as update and get the information of the current installed plugin in the preflight.
For example
public function preflight(string $type, InstallerAdapter $parent): bool
{
$cache = new Registry($parent->extension->manifest_cache);
$this->oldVersion = $cache->get('version');
return true;
}
$this->oldVersion = null
$this->oldVersion = <the actual currently installed version>
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
This pull request has been automatically rebased to 5.3-dev.