PropertyBag.php propMap errors
Overview
Using Stripe (not sure of other processors), email throws error in PropertyBag.php
Reproduction steps
- Create event and checkout
- When using email (and I assume other fields that have similar many-many relations), it will error out on checkout.
- The reason is that in ``` protected static $propMap = [ ``` array is set to email.
- It needs to be parsed different
Expected behaviour
It parses the email submitted and strips the -Primary etc.
Temp fix is note email-Primary pointing to email:
Comments
This is a fatal error and will also be an issue for address etc.
I thought about doing a regex like preg_replace('/email.*$/', 'email'... but that won't work with multiple keys. In my case that's not an issue, but may be for others.
Edited by tresero