# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php +++ components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php @@ -2369,6 +2369,7 @@ break; case '': default: + $this->validate( $field, $user, $choice, $newAvatar, $postdata, $reason ); break; } } @@ -2417,7 +2418,16 @@ return false; } break; + case '': + default: + if ( $isRequired ) { + if ( ! $value ) { + $this->_setValidationError( $field, $user, $reason, _UE_FIELDREQUIRED ); + return false; } + } + break; + } return true; } @@ -2673,7 +2683,7 @@ $additional .= ' disabled="disabled"'; } - $html .= moscomprofilerHTML::selectList( $choices, $name . '__choice', $additional, 'value', 'text', '', $required ); \ No newline at end of file + $html .= moscomprofilerHTML::selectList( $choices, $name . '__choice', $additional, 'value', 'text', '', $required, true, false ); \ No newline at end of file /* $js = " $('#cbimg_upload_" . $name . ",#cbimg_gallery_" . $name . "').hide();" . "\n $('#" . $name . "__choice').click( function() {"