CRM-6491 Admin-only price set fields display help text on public pages

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.2
    • Component/s: CiviContribute, CiviEvent
    • Labels:
      None

      Description

      Create a price set with both public and admin-only price fields, include help text on both. When the price set is used for an event registration, the help text for the admin-only field is displayed on the registration page.

        Attachments

          Activity

          [CRM-6491] Admin-only price set fields display help text on public pages
          David Greenberg added a comment -

          I made the fix to completely skip display of price set fields in templates/CRM/Price/Form/PriceSet.tpl if visibility is 'Admin'. However the logic I committed uses $element.visibility_id - needs to be fixed to used visibility.label.

          Code which needs to be fixed:
          {* Skip 'Admin' visibility price fields since this tpl is used in online registration. *}

          {if $element.visibility_id EQ 1}

          Register.php buildAmount() already has logic to skip adding the fields to quickform - but it passed only visibllity_id for each field.

          Kurund Jalmi added a comment -

          Now we pass visibility in the template

            People

            • Assignee:
              David Greenberg
              Reporter:
              Kirk Markley

              Dates

              • Created:
                Updated:
                Resolved: