diff options
author | Joas Schilling <coding@schilljs.com> | 2025-07-17 12:18:17 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-07-21 12:09:30 +0000 |
commit | c25dbf797d0c2026ed2cd9a9227dc0d42007928a (patch) | |
tree | 5889c2ced6a7a51c417e5f92c2d4e51bce6f1a68 | |
parent | 00febd7e0ee5de45a6b9815c5fae5444d42a021a (diff) | |
download | nextcloud-server-backport/53986/stable30.tar.gz nextcloud-server-backport/53986/stable30.zip |
fix(update): Correctly trigger update for auto-disabled local appsbackport/53986/stable30
When updating a local app we still need to run updateApp
so that repair steps and migrations are correctly executed
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/private/Updater.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php index e26faf86f92..08681eb0af7 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -383,6 +383,13 @@ class Updater extends BasicEmitter { if ($this->installer->isUpdateAvailable($app)) { $this->emit('\OC\Updater', 'upgradeAppStoreApp', [$app]); $this->installer->updateAppstoreApp($app); + } elseif (!empty($previousEnableStates)) { + /** + * When updating a local app we still need to run updateApp + * so that repair steps and migrations are correctly executed + * Ref: https://github.com/nextcloud/server/issues/53985 + */ + \OC_App::updateApp($app); } $this->emit('\OC\Updater', 'checkAppStoreApp', [$app]); |