aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2025-07-17 12:18:17 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-07-21 12:09:42 +0000
commit600cc6ebe559b84f46c2f30bb9b000a4aca91049 (patch)
treebbc467c61a779396b06a6680fc0f5f17613feb4e
parentc2f14f44cba962718cff16be569b29acd49ce5a8 (diff)
downloadnextcloud-server-backport/53986/stable31.tar.gz
nextcloud-server-backport/53986/stable31.zip
fix(update): Correctly trigger update for auto-disabled local appsbackport/53986/stable31
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.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php
index c4631f2c7d3..abfc0e7512b 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]);