mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-14 21:56:39 +02:00
Merge branch 'ticket/hammerhead/8904' into develop-olympus
* ticket/hammerhead/8904: [ticket/8904] Show default value for numeric custom profile fields when editing
This commit is contained in:
@ -512,7 +512,7 @@ class acp_profile
|
|||||||
else if ($field_type == FIELD_INT && $key == 'field_default_value')
|
else if ($field_type == FIELD_INT && $key == 'field_default_value')
|
||||||
{
|
{
|
||||||
// Permit an empty string
|
// Permit an empty string
|
||||||
if (request_var('field_default_value', '') === '')
|
if ($action == 'create' && request_var('field_default_value', '') === '')
|
||||||
{
|
{
|
||||||
$var = '';
|
$var = '';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user