Skip to content

Commit 29358db

Browse files
committed
MAGETWO-51439: [Github] System Upgrade drop-down does not work when add git based repo #3935
- set the 'name' key in the result array if not set
1 parent c2bc8f4 commit 29358db

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/InfoCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ public function run($package, $installed = false)
5454
'-i' => $installed
5555
];
5656

57-
$result = [];
58-
5957
try {
6058
$output = $this->magentoComposerApplication->runComposerCommand($commandParameters);
6159
} catch (\RuntimeException $e) {
@@ -73,6 +71,10 @@ public function run($package, $installed = false)
7371

7472
$result = $this->extractVersions($result);
7573

74+
if (!isset($result['name']) && isset($result['current_version'])) {
75+
$result['name'] = $package;
76+
}
77+
7678
return $result;
7779
}
7880

0 commit comments

Comments
 (0)