Skip to content

[ticket/12793] String '0' does not display for string profile fields#2718

Merged
nickvergessen merged 3 commits intophpbb:develop-ascraeusfrom
satanasov:ticket/12793
Jul 27, 2014
Merged

[ticket/12793] String '0' does not display for string profile fields#2718
nickvergessen merged 3 commits intophpbb:develop-ascraeusfrom
satanasov:ticket/12793

Conversation

@satanasov
Copy link
Copy Markdown
Contributor

See #2647 (comment)

Found this before going to work.

PHPBB3-12793

@satanasov
Copy link
Copy Markdown
Contributor Author

phpbb_profilefield_type_string_test::test_get_profile_value_raw with data set #3 (0, array(false), NULL, 'Field should return null for empty integer without show_novalue')

Field should return null for empty integer without show_novalue

Failed asserting that 0 is identical to null.

We are not treating 0 as null from now on.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change this function to return $this->get_profile_value_raw($field_value, $field_data);

…e_raw

Changing the return to get_profile_value_raw

PHPBB3-12793
changed behavieur of 0 as in and added 0 as string test

PHPBB3-12793
nickvergessen added a commit to nickvergessen/phpbb that referenced this pull request Jul 27, 2014
[ticket/12793] String '0' does not display for string profile fields

* lucifer4o/ticket/12793:
  [ticket/12793] Tests (added and changed)
  [ticket/12793] Changing get_profile_contact_value to get_profile_value_raw
  [ticket/12793] String '0' does not display for string profile fields
@nickvergessen nickvergessen merged commit 902937c into phpbb:develop-ascraeus Jul 27, 2014
@satanasov satanasov deleted the ticket/12793 branch January 14, 2017 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants