alfio-event / alf.io

alf.io - The open source ticket reservation system for conferences, trade shows, workshops, meetups
https://alf.io
GNU General Public License v3.0
1.4k stars 346 forks source link

Data to collect still appears even after the fields are disabled / multiple choice (checkbox) #1332

Open icougil opened 7 months ago

icougil commented 7 months ago

Describe the bug After disabling one of the fields you can include in the "Attendees' data to collect" section, it still appears in the reservation / public view (where the users could buy a ticket).

To Reproduce Steps to reproduce the behaviour:

  1. Go to the admin web
  2. Inside the "Attendees' data to collect" section, choose a "Multiple choice (checkbox)" and deselect one of the elements you have added there previously
  3. Save the changes
  4. Go to the reservation/public view and try to buy a ticket. You will still see the previous values in the checkbox

Expected behaviour We expect not to see the disabled element/s

Screenshots

Desktop (please complete the following information):

Additional context Side note/another bug?: we found that using the "&" as a Text value in the "Multiple choice (checkbox)" made it impossible to continue with the reservation and, therefore, not move to the buying page.

syjer commented 7 months ago

hi @icougil , thank you reporting this bug: I'm able to reproduce the issue in the main branch.

However I'm not able to reproduce the '&' issue.

syjer commented 7 months ago

As a fix, we will do something similar, as it goes further than simply hide a field on the client side:

On the client side: we should hide if there was no value already pre-set, else we display it gray. On the backend: we should allow to re-send disabled value only if the user had already set that value.

This bug affect: checkbox and radiobutton. Select seems to be handled more correctly, but the proposed improvement should allow a more user intuitive flow.