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.
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:
{if $element.visibility_id EQ 1}{* Skip 'Admin' visibility price fields since this tpl is used in online registration. *}
Register.php buildAmount() already has logic to skip adding the fields to quickform - but it passed only visibllity_id for each field.