From 7162166bae7de67cc87c31719df46ee1bf51bd50 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Thu, 24 Nov 2016 15:04:23 +0100 Subject: [PATCH] Also show updates on the "enabled" page The enabled page doesn't pass through "getAppsForCategory" thus it also needs to have that special logic applied. Signed-off-by: Lukas Reschke --- settings/Controller/AppSettingsController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/settings/Controller/AppSettingsController.php b/settings/Controller/AppSettingsController.php index 8d12b2a85a2..a665532a3b7 100644 --- a/settings/Controller/AppSettingsController.php +++ b/settings/Controller/AppSettingsController.php @@ -273,6 +273,12 @@ class AppSettingsController extends Controller { $apps = array_filter($apps, function ($app) { return $app['active']; }); + + foreach($apps as $key => $app) { + $newVersion = \OC\Installer::isUpdateAvailable($app['id'], $this->appFetcher); + $apps[$key]['update'] = $newVersion; + } + usort($apps, function ($a, $b) { $a = (string)$a['name']; $b = (string)$b['name']; -- 2.39.5