Project

General

Profile

Bug #1572 ยป 1572.patch

CB 1.2.2 RC 2 Patch - krileon, 04 March 2010 21:17

View differences:

components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php
break;
case '':
default:
$this->validate( $field, $user, $choice, $newAvatar, $postdata, $reason );
break;
}
}
......
return false;
}
break;
case '':
default:
if ( $isRequired ) {
if ( ! $value ) {
$this->_setValidationError( $field, $user, $reason, _UE_FIELDREQUIRED );
return false;
}
}
break;
}
return true;
}
......
$additional .= ' disabled="disabled"';
}
$html .= moscomprofilerHTML::selectList( $choices, $name . '__choice', $additional, 'value', 'text', '', $required );
$html .= moscomprofilerHTML::selectList( $choices, $name . '__choice', $additional, 'value', 'text', '', $required, true, false );
/*
$js = " $('#cbimg_upload_" . $name . ",#cbimg_gallery_" . $name . "').hide();"
. "\n $('#" . $name . "__choice').click( function() {"
    (1-1/1)