Commit fbc3d23c authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen

Merge branch '92-update-task-for-check-of-outdated-version' into 'develop'

Resolve "Update Task for check of outdated version"

Closes #92

See merge request !108
parents 57e8f1cc c90da6fe
Pipeline #1620 passed with stages
in 4 minutes and 6 seconds
......@@ -137,7 +137,7 @@ class CheckForOutdatedExtensions extends Task
{
$oldestMinorVersion = explode('.', $this->supportedCoreVersions['oldest']);
$oldestMinorVersion = $oldestMinorVersion[0] . '.' . $oldestMinorVersion[1];
$oldestMinorVersion = $oldestMinorVersion[0];
$releaseDate = $this->coreVersions[$oldestMinorVersion]['releases'][$this->supportedCoreVersions['oldest']]['date'];
......@@ -240,12 +240,12 @@ class CheckForOutdatedExtensions extends Task
/**
* check if the given version is outdated and mark it in database
*
* @param integer $version
* @param integer $versionRecord
*/
protected function checkVersion($version)
protected function checkVersion($versionRecord)
{
/** @var \T3o\TerFe2\Domain\Model\Version $version */
$version = $this->versionRepository->findByUid($version['uid']);
$version = $this->versionRepository->findByUid($versionRecord['uid']);
if (!$version instanceof \T3o\TerFe2\Domain\Model\Version) {
return;
......@@ -264,7 +264,6 @@ class CheckForOutdatedExtensions extends Task
// Check against dependency against TYPO3 not actively supported
}
if ($isOutdated) {
$this->getDatabaseConnection()->exec_UPDATEquery(
'tx_terfe2_domain_model_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