Resolve issue with judge registration

This commit is contained in:
arman 2025-02-08 01:38:28 +00:00
parent d32406db94
commit d71d3818ad

View File

@ -86,6 +86,7 @@ if ($eid != $_SESSION['users_id']) {
$type = $_SESSION['users_type'];
$u = user_load($eid);
/* Load the fields the user can edit, and theones that are required */
$fields = array();
$required = array();
@ -185,10 +186,11 @@ if (get_value_from_array($_SESSION, 'embed') == true) {
$newstatus = user_personal_info_status($u);
?>
<script type="text/javascript">
function personal_save()
{
{
$("#debug").load("<?= $config['SFIABDIRECTORY'] ?>/user_personal.php?action=save", $("#personal_form").serializeArray());
return false;
return false;
}
function personal_update_status(s) {
@ -389,7 +391,8 @@ if (in_array('committee', $u['types'])) {
echo '</table>';
}
echo '<input type="submit" onclick="personal_save()" value="' . i18n('Save Personal Information') . "\" />\n";
echo '<input type="submit" onclick="personal_save();return false;" value="' . i18n('Save Personal Information') . "\" />\n";
echo '</form>';
echo '<br />';