Commit 7290949c authored by Thomas Löffler's avatar Thomas Löffler

Merge branch 'relation-version-import' into 'develop'

[BUGFIX] Relation must use Version utility w/ alias

See merge request !268
parents d5d84677 f723bb4f
Pipeline #2713 passed with stages
in 7 minutes and 11 seconds
......@@ -15,7 +15,7 @@ namespace T3o\TerFe2\Domain\Model;
* The TYPO3 project - inspiring people to share!
*/
use T3o\TerFe2\Utility\Version;
use T3o\TerFe2\Utility\Version as VersionUtility;
/**
* Any type of relation of an extension
......@@ -179,11 +179,11 @@ class Relation extends \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject
$version = [];
if (!empty($this->minimumVersion)) {
$version[] = Version::versionFromInteger($this->minimumVersion);
$version[] = VersionUtility::versionFromInteger($this->minimumVersion);
}
if (!empty($this->maximumVersion)) {
$version[] = Version::versionFromInteger($this->maximumVersion);
$version[] = VersionUtility::versionFromInteger($this->maximumVersion);
}
return (!empty($version) ? implode(' - ', $version) : '');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment