mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/8904] Show default value for numeric custom profile fields when editing
This commit is contained in:
commit
1cc5087c36
1 changed files with 1 additions and 1 deletions
|
@ -515,7 +515,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 = '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue