Bug #24452 » 16890-tcatree.patch
t3lib/tceforms/class.t3lib_tceforms_tree.php (working copy) | ||
---|---|---|
* @return string The HTML code for the TCEform field
|
||
*/
|
||
public function renderField($table, $field, $row, &$PA, $config, $possibleSelectboxItems, $noMatchLabel) {
|
||
$valueArray = explode(',', $row[$field]);
|
||
$valueArray = explode(',', $PA['itemFormElValue']);
|
||
$selectedNodes = array();
|
||
if (count($valueArray)) {
|
||
foreach ($valueArray as $selectedValue) {
|
||
... | ... | |
$allowedUids[] = $item[1];
|
||
}
|
||
}
|
||
$treeDataProvider = t3lib_tree_Tca_DataProviderFactory::getDataProvider(
|
||
$config,
|
||
$table,
|
||
... | ... | |
$formField = '
|
||
<div class="typo3-tceforms-tree">
|
||
<input type="hidden" name="' . $PA['itemFormElName'] . '" id="treeinput' . $id . '" value="' . $row[$field] . '" />
|
||
<input type="hidden" name="' . htmlspecialchars($PA['itemFormElID']) . '" id="treeinput' . $id . '" value="' . htmlspecialchars($PA['itemFormElValue']) . '" />
|
||
</div>
|
||
<div id="tree_' . $id . '">
|
||