Project

General

Profile

Bug #24452 » 16890-flexforms_v2.patch

Administrator Admin, 2011-02-02 08:12

View differences:

t3lib/tceforms/class.t3lib_tceforms_tree.php (working copy)
/**
* Constructor which sets the tceForms.
*
*
* @param t3lib_TCEforms $tceForms
*
*/
......
* @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) {
......
$formField = '
<div class="typo3-tceforms-tree">
<input type="hidden" name="' . $PA['itemFormElName'] . '" id="treeinput' . $id . '" value="' . $row[$field] . '" />
<input type="hidden" name="' . htmlspecialchars($PA['itemFormElName']) . '" id="treeinput' . $id . '" value="' . htmlspecialchars($PA['itemFormElValue']) . '" />
</div>
<div id="tree_' . $id . '">
(3-3/3)