Also set the app version when updating from app store
This commit is contained in:
parent
3184983565
commit
ae263da69a
|
@ -1167,6 +1167,9 @@ class OC_App {
|
|||
|
||||
self::setAppTypes($appId);
|
||||
|
||||
$version = \OC_App::getAppVersion($appId);
|
||||
\OC_Appconfig::setValue($appId, 'installed_version', $version);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue