mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Merge pull request #3724 from javiexin/ticket/13960
[ticket/13960] Profile field validation breaks ACP * javiexin/ticket/13960: [ticket/13960] Profile field validation breaks ACP
This commit is contained in:
@@ -537,13 +537,14 @@ class acp_profile
|
||||
}
|
||||
}
|
||||
|
||||
$step = (isset($_REQUEST['next'])) ? $step + 1 : ((isset($_REQUEST['prev'])) ? $step - 1 : $step);
|
||||
|
||||
if (sizeof($error))
|
||||
{
|
||||
$step--;
|
||||
$submit = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$step = (isset($_REQUEST['next'])) ? $step + 1 : ((isset($_REQUEST['prev'])) ? $step - 1 : $step);
|
||||
}
|
||||
|
||||
// Build up the specific hidden fields
|
||||
foreach ($exclude as $num => $key_ary)
|
||||
@@ -561,7 +562,7 @@ class acp_profile
|
||||
$var = $profile_field->prepare_hidden_fields($step, $key, $action, $field_data);
|
||||
if ($var !== null)
|
||||
{
|
||||
$_new_key_ary[$key] = $profile_field->prepare_hidden_fields($step, $key, $action, $field_data);
|
||||
$_new_key_ary[$key] = $var;
|
||||
}
|
||||
}
|
||||
$cp->vars = $field_data;
|
||||
@@ -571,11 +572,7 @@ class acp_profile
|
||||
|
||||
if (!sizeof($error))
|
||||
{
|
||||
if ($step == 3 && (sizeof($this->lang_defs['iso']) == 1 || $save))
|
||||
{
|
||||
$this->save_profile_field($cp, $field_type, $action);
|
||||
}
|
||||
else if ($action == 'edit' && $save)
|
||||
if (($step == 3 && (sizeof($this->lang_defs['iso']) == 1 || $save)) || ($action == 'edit' && $save))
|
||||
{
|
||||
$this->save_profile_field($cp, $field_type, $action);
|
||||
}
|
||||
|
Reference in New Issue
Block a user