Project

General

Profile

Bug #20021 » 10442.diff

Administrator Admin, 2009-02-15 22:04

View differences:

t3lib/class.t3lib_tcemain.php (working copy)
$value = $this->convNumEntityToByteValue($value);
// When values are sent as group or select they come as comma-separated values which are exploded by this function:
$valueArray = $this->checkValue_group_select_explodeSelectGroupValue($value);
if ($tcaFieldConf['maxItems'] > 1) {
$valueArray = $this->checkValue_group_select_explodeSelectGroupValue($value);
} else {
$valueArray = array($value);
}
// If not multiple is set, then remove duplicates:
if (!$tcaFieldConf['multiple']) {
t3lib/class.t3lib_transferdata.php (working copy)
global $TCA;
// Initialize:
$elements = t3lib_div::trimExplode(',',$data,1); // Current data set.
if ($fieldConfig['config']['maxitems'] > 1) {
$elements = t3lib_div::trimExplode(',', $data, 1); // Current data set.
} else {
$elements = array($data);
}
$dataAcc=array(); // New data set, ready for interface (list of values, rawurlencoded)
// For list selectors (multi-value):
(1-1/3)