aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2025-07-21 14:09:22 +0200
committerGitHub <noreply@github.com>2025-07-21 14:09:22 +0200
commitd9e0216b2bb17ceb2383d678d4da45adb6f76081 (patch)
tree38dde1139fad3d0e0bcacba3cc418eb0313e0b44
parenta1f4b59997df99af48e0c58a3a3526e6d9f5e90f (diff)
parent0ace3959819ef6abf7ee1f9aadfe10954dd4bdd7 (diff)
downloadnextcloud-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.php7
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]);