diff options
author | Niklas Schmidtmer <niklas.schmidtmer@gmx.de> | 2011-02-13 18:29:30 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2011-02-13 18:32:11 +0100 |
commit | c717e44094ce6d3b3ad4f56519b8f421ec06146e (patch) | |
tree | 45617dc99aeba49a9a68d1bbcd35ec63583fe369 | |
parent | 42707053a2fed5c0157de13ebc2407fd80438aca (diff) | |
download | forums-c717e44094ce6d3b3ad4f56519b8f421ec06146e.tar forums-c717e44094ce6d3b3ad4f56519b8f421ec06146e.tar.gz forums-c717e44094ce6d3b3ad4f56519b8f421ec06146e.tar.bz2 forums-c717e44094ce6d3b3ad4f56519b8f421ec06146e.tar.xz forums-c717e44094ce6d3b3ad4f56519b8f421ec06146e.zip |
[ticket/8904] Show default value for numeric custom profile fields when editing
When displaying the default value for a numeric custom profile field, only use
request_var to obtain the value on creation. When editing, it will always
override the actual value with an empty string, as this is request_var's default
return value.
PHPBB3-8904
-rw-r--r-- | phpBB/includes/acp/acp_profile.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index 2288a0728b..2e43b0545a 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -512,7 +512,7 @@ class acp_profile else if ($field_type == FIELD_INT && $key == 'field_default_value') { // Permit an empty string - if (request_var('field_default_value', '') === '') + if ($action == 'create' && request_var('field_default_value', '') === '') { $var = ''; } |