public function normalizeFrontendGroupField($table, $record)
    {
        if (isset($this->tca[$table]['ctrl']['enablecolumns']['fe_group'])) {
            $frontendGroupsField = $this->tca[$table]['ctrl']['enablecolumns']['fe_group'];

            if ($record[$frontendGroupsField] == '') {
                $record[$frontendGroupsField] = '0';
            }
        }

        return $record;
    }
public function normalizeFrontendGroupField($table, $record)
    {
        if (isset($this->tca[$table]['ctrl']['enablecolumns']['fe_group'])) {
            $frontendGroupsField = $this->tca[$table]['ctrl']['enablecolumns']['fe_group'];

            if ($record[$frontendGroupsField] == '') {
                $record[$frontendGroupsField] = '0';
            }
        }

        return $record;
    }
public function normalizeFrontendGroupField ( $ table , $ record ) { if ( isset ( $ this -> tca [ $ table ] [ 'ctrl' ] [ 'enablecolumns' ] [ 'fe_group' ] ) ) { $ frontendGroupsField = $ this -> tca [ $ table ] [ 'ctrl' ] [ 'enablecolumns' ] [ 'fe_group' ] ; if ( $ record [ $ frontendGroupsField ] == '' ) { $ record [ $ frontendGroupsField ] = '0' ; } } return $ record ; }
Makes sure that "empty" frontend group fields are always the same value.

@param string $table The record's table name.
@param array $record the record array.
@return array The cleaned record
Makes sure that empty frontend group fields are always the same value .