Browse Source

Check for app updates on disabled page

Fixes #2403

We need to check for updates of disabled apps so that if you update with
incompatible apps you at least get a chance to upgrade.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v11.0RC2
Roeland Jago Douma 7 years ago
parent
commit
d59ffb8bf1
No account linked to committer's email address
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      settings/Controller/AppSettingsController.php

+ 9
- 0
settings/Controller/AppSettingsController.php View File

@@ -296,6 +296,15 @@ class AppSettingsController extends Controller {
$apps = array_filter($apps, function ($app) {
return !$app['active'];
});

$apps = array_map(function ($app) {
$newVersion = \OC\Installer::isUpdateAvailable($app['id'], $this->appFetcher);
if ($newVersion !== false) {
$app['update'] = $newVersion;
}
return $app;
}, $apps);

usort($apps, function ($a, $b) {
$a = (string)$a['name'];
$b = (string)$b['name'];

Loading…
Cancel
Save