Skip to content

Commit

Permalink
fix: broken range config
Browse files Browse the repository at this point in the history
  • Loading branch information
aoekrz committed Sep 24, 2024
1 parent b293968 commit 78fb3c9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ext_tables.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<?php
defined('TYPO3') or die();

// configure range of endtime here (and NOT in Configuration/TCA/[tablename].php), because the configuration-data is not cacheable!
$GLOBALS['TCA']['tx_happyfeet_domain_model_footnote']['columns']['endtime']['config']['range'] = [
'upper' => mktime(0, 0, 0, 12, 31, date('Y') + 10),
'lower' => mktime(0, 0, 0, date('m') - 1, date('d'), date('Y'))
];

$GLOBALS['TCA']['tx_happyfeet_domain_model_footnote']['ctrl']['security']['ignorePageTypeRestriction'] = true;
$GLOBALS['TCA']['tx_happyfeet_domain_model_footnote']['ctrl']['security']['ignorePageTypeRestriction'] = true;

0 comments on commit 78fb3c9

Please sign in to comment.