verbb / events

Craft CMS Plugin for events management and ticketing.
Other
22 stars 13 forks source link

Need to save Event twice to change the name of the ticket in an order when dynamically generating the Event title #78

Closed ragnarfrosti closed 1 month ago

ragnarfrosti commented 3 years ago

We are using the latest version of the Event plugin and have a problem with the name of the ticket on an order when the dynamic title of the event changes.

The event type has a hidden title field and the title is autogenerated by the start date, end date and two other fields (location entry and a course entry)

Event type title field

Steps to reproduce

  1. Create a new event that dynamically generates the title
  2. Go to Commerce > Orders > + New order in Craft commerce Create your first line item and search for the newly created event there it looks like this:
New line item

So far so good.

  1. Update the dates on the event, or one of the other fields that we use to create the title of the event. (I changed the start date in this example) and do step 2 above where you add a line item to an order and you'll see that the name of the ticket has not been updated.
New line item
  1. Resave the event without changing anything and then it will get the new name (with the correct date) when creating a new order in Craft Commerce
Screenshot 2021-03-03 at 10 25 05

So we always need to save an event twice after changing any of the fields that are used to generate the title of the event.

Additional info

engram-design commented 1 month ago

Fixed in 3.0.0-beta.3.