Project

General

Profile

Bug #2960 » 2960.patch

krileon, 01 February 2012 18:43

View differences:

components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php
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
$chosen = $value;
} 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
$chosen[$i] = $chosen[$i];
}
}
return $this->_arrayToFormat( $field, $chosen, $output );
(1-1/2)