FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[ticket/12793] String '0' does not display for string profile fields by satanasov · Pull Request #2718 · phpbb/phpbb · GitHub

/ phpbb Public

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

Merged
nickvergessen merged 3 commits into
phpbb: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 into
phpbb:develop-ascraeusfrom
satanasov:ticket/12793

Conversation

Copy link
Copy Markdown
Contributor

See #2647 (comment)

Found this before going to work.

PHPBB3-12793

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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 merged commit 902937c into phpbb:develop-ascraeus Jul 27, 2014
satanasov deleted the ticket/12793 branch January 14, 2017 13:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL