Project

General

Profile

Bug #2960 » 2960_rev1.patch

krileon, 01 February 2012 18:47

View differences:

components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php
case 'xml':
case 'json':
case 'php':
if ( in_array( $field->type, array( 'radio', 'select' ) ) ) {
$chosen = getLangDefinition( $value ); //TODO: bug #2960 : CB 1.7.1 substitution check uses language string value instead of stored field value : is due to this language issue
} else {
// multiselect, multicheckbox:
$chosen = $this->_explodeCBvalues( $value );
for( $i = 0, $n = count( $chosen ); $i < $n; $i++ ) {
$chosen[$i] = getLangDefinition( $chosen[$i] ); //TODO: bug #2960 : CB 1.7.1 substitution check uses language string value instead of stored field value : is due to this language issue
}
}
return $this->_arrayToFormat( $field, $chosen, $output );
break;
case 'csv':
if ( in_array( $field->type, array( 'radio', 'select' ) ) ) {
$chosen = $value;
(2-2/2)