From cb8f65f1825afae729cc185e8475fe33c05afae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 8 Aug 2022 15:02:27 +0200 Subject: [PATCH] Show version from appinfo on occ app:list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- core/Command/App/ListApps.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/Command/App/ListApps.php b/core/Command/App/ListApps.php index 6f8858c8858a2..30c36e118c68a 100644 --- a/core/Command/App/ListApps.php +++ b/core/Command/App/ListApps.php @@ -87,7 +87,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int sort($disabledApps); foreach ($disabledApps as $app) { - $apps['disabled'][$app] = $versions[$app] ?? null; + $installedVersion = $this->manager->getAppVersion($app); + $apps['disabled'][$app] = $installedVersion ?? null; } $this->writeAppList($input, $output, $apps);