Commit 7e877ba4 authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen
Browse files

Merge branch 'bugfix/keep-extension-key-throws-exception' into 'develop'

Set expire date to not null because of strict database

See merge request t3o/ter!527
parents 4deafad3 c5035616
Pipeline #9230 passed with stages
in 7 minutes and 50 seconds
......@@ -517,6 +517,10 @@ class Extension extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
*/
public function setExpire(\DateTime $expire = null)
{
if ($expire === null) {
$expire = new \DateTime();
$expire->setTimestamp(0);
}
$this->expire = $expire;
}
......
......@@ -177,7 +177,8 @@ return [
'label' => 'LLL:EXT:ter_fe2/Resources/Private/Language/locallang_db.xlf:tx_terfe2_domain_model_extension.expire',
'config' => [
'type' => 'none',
'format' => 'datetime'
'format' => 'datetime',
'default' => 0,
],
],
'likes' => [
......
Supports Markdown
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