Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-9084

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.0.6
    • 3.0.11-RC1
    • ACP
    • None
    • PHP Environment: 5.2.5
      Database: 5.0.45

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: