Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ticket invoice fields are not preserved after failed server validation #1354

Open
enrico-sorcinelli opened this issue Aug 2, 2024 · 0 comments

Comments

@enrico-sorcinelli
Copy link

enrico-sorcinelli commented Aug 2, 2024

Describe the bug

In the ticket page, the invoice fields are not preserved after a failed server validation.

PS: I searched over open issues and PRs and I didn't found simlar one, so sorry in advance if it's a duplicate

To reproduce

Steps to reproduce the behavior:

  1. Activate Camptix Invoices for WordCamp.org plugin and enable Ticket > Setup > Activate invoice requests option from Dashboard.
  2. Create from dashboard a Ticket post and setup Ticket page (it has to have at least the [camptix] shortcode).
  3. Go to FE ticket page, select a non-zero quantity for the ticket and ckicl on Register.
  4. Fill-in all required fields by using and e-mail address that passes client syntax check but not server check too (e.g. [email protected]).
  5. Scroll down and activate I need an invoice and fill-in all required fields.
  6. Select a payment method and click on Checkout.
  7. The checkout should fail (the ticket page show on top error messages) and all the I need an invoice fields values are loss.

Expected behavior

After server validation error, the returned ticket page should have:

  • I need an invoice field checked.
  • Invoice fields visible.
  • Invoice fields prefilled with values that user filled-in before submission.

Screenshots / Screencasts

n.a.

WordCamp

All WordCamp sites having I need an invoice option enabled.
I'm working on a WordCamp event site and we haven't published yet the ticket page but the bug occurs also in the following WordCamp sites having invoice option activated:

System

  • Device: all
  • OS: all
  • Browser all
@enrico-sorcinelli enrico-sorcinelli changed the title Ticket invoice fields don't are preserved after failed server validation Ticket invoice fields are not preserved after failed server validation Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant