[TYPO3-mvc] Re: Problems with setIgnoreEnableFields
Philipp Wrann
philippwrann at gmail.com
Thu Jul 30 17:45:41 CEST 2015
This behaviour is correct, if an endtime is reached the object is invalid and you should throw a 404 error.
Four your purpose you should add a property to limit an object from being shown in list views.
Because the object is still valid in your case...
BTW:
Its easier to overwrite the createQuery method
public function createQuery() {
$query = parent::createQuery();
$query->getQuerySettings()->setRespectStoragePage(FALSE);
return $query;
}
thats it.
A quick fix for your problem:
add
initializeDetailAction () {
// or whatever action should ignore that setting
unset($GLOBALS['TCA']['tablename']['ctrl']['enablecolumns']['endtime']);
}
More information about the TYPO3-project-typo3v4mvc
mailing list