diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2025-07-21 14:09:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-21 14:09:22 +0200 |
commit | d9e0216b2bb17ceb2383d678d4da45adb6f76081 (patch) | |
tree | 38dde1139fad3d0e0bcacba3cc418eb0313e0b44 | |
parent | a1f4b59997df99af48e0c58a3a3526e6d9f5e90f (diff) | |
parent | 0ace3959819ef6abf7ee1f9aadfe10954dd4bdd7 (diff) | |
download | nextcloud-server-d9e0216b2bb17ceb2383d678d4da45adb6f76081.tar.gz nextcloud-server-d9e0216b2bb17ceb2383d678d4da45adb6f76081.zip |
Merge pull request #53986 from nextcloud/bugfix/53985/trigger-update-for-autodisabled-local-apps
fix(update): Correctly trigger update for auto-disabled local apps
-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 6495bad2da2..9cd33863612 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -385,6 +385,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]); |