|
@@ 1107-1113 (lines=7) @@
|
| 1104 |
|
$saveValue[] = $pair['table'] . '_' . $pair['id']; |
| 1105 |
|
} |
| 1106 |
|
// Set in data array: |
| 1107 |
|
if ($flexPointer) { |
| 1108 |
|
$flexFormTools = GeneralUtility::makeInstance(FlexFormTools::class); |
| 1109 |
|
$dataArray[$refRec['tablename']][$refRec['recuid']][$refRec['field']]['data'] = []; |
| 1110 |
|
$flexFormTools->setArrayValueByPath(substr($flexPointer, 0, -1), $dataArray[$refRec['tablename']][$refRec['recuid']][$refRec['field']]['data'], implode(',', $saveValue)); |
| 1111 |
|
} else { |
| 1112 |
|
$dataArray[$refRec['tablename']][$refRec['recuid']][$refRec['field']] = implode(',', $saveValue); |
| 1113 |
|
} |
| 1114 |
|
} else { |
| 1115 |
|
return 'ERROR: table:id pair "' . $refRec['ref_table'] . ':' . $refRec['ref_uid'] . '" did not match that of the record ("' . $itemArray[$refRec['sorting']]['table'] . ':' . $itemArray[$refRec['sorting']]['id'] . '") in sorting index "' . $refRec['sorting'] . '"'; |
| 1116 |
|
} |
|
@@ 1148-1154 (lines=7) @@
|
| 1145 |
|
$saveValue[] = $fileInfo['filename']; |
| 1146 |
|
} |
| 1147 |
|
// Set in data array: |
| 1148 |
|
if ($flexPointer) { |
| 1149 |
|
$flexFormTools = GeneralUtility::makeInstance(FlexFormTools::class); |
| 1150 |
|
$dataArray[$refRec['tablename']][$refRec['recuid']][$refRec['field']]['data'] = []; |
| 1151 |
|
$flexFormTools->setArrayValueByPath(substr($flexPointer, 0, -1), $dataArray[$refRec['tablename']][$refRec['recuid']][$refRec['field']]['data'], implode(',', $saveValue)); |
| 1152 |
|
} else { |
| 1153 |
|
$dataArray[$refRec['tablename']][$refRec['recuid']][$refRec['field']] = implode(',', $saveValue); |
| 1154 |
|
} |
| 1155 |
|
} else { |
| 1156 |
|
return 'ERROR: either "' . $refRec['ref_table'] . '" was not "_FILE" or file PATH_site+"' . $refRec['ref_string'] . '" did not match that of the record ("' . $itemArray[$refRec['sorting']]['ID_absFile'] . '") in sorting index "' . $refRec['sorting'] . '"'; |
| 1157 |
|
} |