Price field options missing if there are two or more price sets that contain fields with the same label
Created by: freeform-sg
Original discussion on StackOverflow
As of version 3.8.3 there appears to be an issue if any price fields from different price sets share any labels. Here are the steps to reproduce:
- Create a price set of type event, add multiple fields
- Duplicate the price set, without changing the labels of any of the fields
- Create an event and select the 1st price set
- Create a second event and select the 2nd price set
- Create a discount code and view the available price fields: for each price set you created only 1 field's options will be available (Screenshot 1)
- Attempt to create a discount code again and this time all price fields from both price sets should be available (Screenshot 2)
Additionally; if you change the labels so that only 1 field label is not unique, then you will see:
- Price set 1 options: Only the field whose label is NOT unique
- Price set 2 options: Only the fields whose labels ARE unique (Screenshot 3)