Skip to content

Commit 248e998

Browse files
committed
Fix version info for admin panel
1 parent 2e0fddd commit 248e998

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

Helper/VersionInfo.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class VersionInfo
2222
{
2323
public const M2_KLARNA = 'kustom/module-checkout';
2424

25+
public const M2_VAIMO_KUSTOM = 'vaimo/kustom-m2-checkout';
26+
2527
/**
2628
* @var State
2729
*/
@@ -168,6 +170,10 @@ public function getFullM2KlarnaVersion(): string
168170
public function getM2KlarnaVersion(): string
169171
{
170172
$composerVersion = $this->getComposerPackageVersion(self::M2_KLARNA);
173+
if (empty($composerVersion)) {
174+
$composerVersion = $this->getComposerPackageVersion(self::M2_VAIMO_KUSTOM);
175+
}
176+
171177
return !empty($composerVersion) ? $composerVersion : $this->getFallbackExtensionVersion();
172178
}
173179

Helper/m2-klarna-version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "1.1.0"
2+
"version": "1.1.2"
33
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Kustom Base Magento 2 Extension",
44
"type": "magento2-module",
55
"license": "Apache-2.0",
6-
"version": "11.0.15",
6+
"version": "11.0.16",
77
"scripts": {
88
"test": "phpunit",
99
"cov": "phpunit --coverage-html coverage"

0 commit comments

Comments
 (0)