1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

Merge branch '3.3.x'

This commit is contained in:
Marc Alexander
2023-10-02 21:02:08 +02:00
2 changed files with 7 additions and 3 deletions

View File

@@ -148,6 +148,8 @@ class manager
break;
}
$has_required = false;
$sql = 'SELECT l.*, f.*
FROM ' . $this->fields_lang_table . ' l,
' . $this->fields_table . ' f
@@ -162,6 +164,8 @@ class manager
/** @var \phpbb\profilefields\type\type_interface $profile_field */
$profile_field = $this->type_collection[$row['field_type']];
$has_required = $has_required || $row['field_required'];
$this->template->assign_block_vars('profile_fields', [
'FIELD' => $profile_field->process_field_row('change', $row),
'FIELD_ID' => $profile_field->get_field_ident($row),
@@ -171,6 +175,8 @@ class manager
]);
}
$this->db->sql_freeresult($result);
$this->template->assign_var('PROFILE_FIELDS_REQUIRED', $has_required);
}
/**