Skip to content

Commit

Permalink
module upgrade fix for 'transition' modules (modules that are bundles…
Browse files Browse the repository at this point in the history
… but still have a Version file) like Profile and legal atm.
  • Loading branch information
craigh committed Aug 27, 2016
1 parent 2cc1f85 commit f4564b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system/ExtensionsModule/Helper/ExtensionHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function upgrade(ExtensionEntity $extension)
$newVersion = $bundle->getMetaData()->getVersion();
if (empty($newVersion)) {
// @todo remove this legacy at Core-2.0
$newVersion = \Zikula\ExtensionsModule\Util::getVersionMeta($extension->getName())->getVersion();
$newVersion = \Zikula\ExtensionsModule\Util::getVersionMeta($extension->getName(), 'modules', $bundle)->getVersion();
}

$extension->setVersion($newVersion);
Expand Down

0 comments on commit f4564b6

Please sign in to comment.