Issue Bug Closed

#63778Do not fetch TSconfig in DataHandler->process_datamap for non-page-records

Stephan Großberndt 12/11/14, 15:03 updated 10/02/18, 11:48

Description

In DataHandler->process_datamap for each record DataHandler->getTCEMAIN_TSconfig is executed, but the TSconfig is used only if $status 'new' && $table ‘pages’

if ($recordAccess) {
    // Here the "pid" is set IF NOT the old pid was a string pointing to a place in the subst-id array.
    list($tscPID) = BackendUtility::getTSCpid($table, $id, $old_pid_value ? $old_pid_value : $fieldArray['pid']);
    $TSConfig = $this->getTCEMAIN_TSconfig($tscPID);
    if ($status == 'new' && $table == 'pages' && is_array($TSConfig['permissions.'])) {
        $fieldArray = $this->setTSconfigPermissions($fieldArray, $TSConfig['permissions.']);
    }

Reviews 2