Bug #1572 ยป 1572.patch
| 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() {"
|
||