Also set the app version when updating from app store

This commit is contained in:
Robin Appelman 2014-07-25 13:38:44 +02:00
parent 3184983565
commit ae263da69a
2 changed files with 3 additions and 2 deletions

View File

@ -1167,6 +1167,9 @@ class OC_App {
self::setAppTypes($appId);
$version = \OC_App::getAppVersion($appId);
\OC_Appconfig::setValue($appId, 'installed_version', $version);
return true;
}

View File

@ -267,8 +267,6 @@ class Updater extends BasicEmitter {
foreach ($apps as $appId) {
if (\OC_App::shouldUpgrade($appId)) {
\OC_App::updateApp($appId);
$version = \OC_App::getAppVersion($appId);
\OC_Appconfig::setValue($appId, 'installed_version', $version);
$this->emit('\OC\Updater', 'appUpgrade', array($appId, $version));
}
}