Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-9084

Unable to display 'option equal to non entered value' if dropdown CPF is not required

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.11-RC1
    • 3.0.6
    • ACP
    • None
    • PHP Environment: 5.2.5
      Database: 5.0.45

      Hi everybody,

      On the custom profle fileds, in page 2 "profile type specific options", if you choose an "option equal to non entered value" and if the field is NOT required, the value choosen is not display (on the viewtopic screen and the profile).
      So I understand when the field IS required that an error is displayed, but if the field is NOT required, normally the field must be display.

      To correct this I did this:
      open includes/functions_profile_fields.php
      find:

      if ($value == $ident_ary['data']['field_novalue'])

      replace with:

      if ($value == $ident_ary['data']['field_novalue'] && $ident_ary['data']['field_required'])

      I hope this is correct and can help.

            rxu rxu
            lolovoisin lolovoisin [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: