Regression Bug from ticket #45281
The remove of the line code in #45281 causes errors in DceRepository->fillFields().
There are the following lines:
The enableFields method tries to access on $GLOBALS['TSFE']->sys_page.
/** @var $cObj tslib_cObj */ $cObj = t3lib_div::makeInstance('tslib_cObj'); $enableFields = $cObj->enableFields($tablename);
The reason why the set of sys_page does not happen in the DceRepository itself, is because that when this method is called in frontend the sys_page is already existing.
I will revive this line of code and add a comment, why it is there.