Project

General

Profile

Bug #23705 » 15958_v5.patch

Administrator Admin, 2011-01-10 12:03

View differences:

t3lib/class.t3lib_tceforms.php (revision )
function getSingleField_typeFlex_draw($dataStruct, $editData, $table, $field, $row, &$PA, $formPrefix = '', $level = 0, $idPrefix = 'ID', $toggleClosed = FALSE) {
$output = '';
if (isset($GLOBALS['TCA'][$table]['ctrl']['languageField']) && $row[$GLOBALS['TCA'][$table]['ctrl']['languageField']] > 0) {
$mayRestructureFlexforms = TRUE;
} else {
$mayRestructureFlexforms = $GLOBALS['BE_USER']->checkLanguageAccess(0);
$mayRestructureFlexforms = $GLOBALS['BE_USER']->checkLanguageAccess(0);
}
// Data Structure array must be ... and array of course...
if (is_array($dataStruct)) {
foreach ($dataStruct as $key => $value) { // Traversing fields in structure:
(2-2/2)