Event price sets: Admin-only text field amount is shown in event registration test drive
This is a minor issue, but potentially confusing as it makes the event registration test drive page incorrect and different from the live registration page.
Steps to replicate:
- Start with an event with a price set for registration options
- Add a Text / Numeric Quantity field to the price set with Visibility = Admin.
- Open Registration (Test Drive) in an Incognito / Private window.
- Open Registration (Live) in an Incognito / Private window.
Note that the amount of the field is shown on a line on the test drive page, but not on the live page. The input field itself is not shown, just the amount. Nothing should be shown on the test drive page as this option is admin only.
This only happens with text fields, other field types are correctly not shown if set to admin only.
Tested on dmaster (5.59).
I will look into this when I have some time available.