Ticket 1 When trying to save a Ticket Price – Manually keying in (eg) 2500 works as expected.
The system then rewrites that as a float, becoming 2,500.00 upon re-entering the edit screen.
Ticket 2 When I decide to create a second ticket, and key in (eg) 3500, this ticket saves as expected.
However, ticket one ends up being saved again as $2 instead of $2500.
This behaviour is also the same, if you simply save the ticket price once, go back to the event, edit any event data (except price which should be in the float format) and save. The price then takes any number that is before the comma.
IE – 2,500.00 becomes 2. 3,500.00 becomes 3.
I’ve tested this on my EE 4.4.4 install and it does not happen.
This only happens with EE 4.4.5 (and I’ve reinstalled the plugin, plus disabled all other plugins and tested with default 2014 theme)
Thanks for letting us know about this, we have a ticket that has been completed to fix this issue. This will most likely be released as part of the 4.5 release cycle.
In the short term I would advise you to use full floats (e.g. 2500.00) as it does not look like these are affected.
I do not plan on updating to 4.5 alpha but I do want that fix, so which is why I was asking for the commit that fixes this. I have access to the github repo so if you could direct me to the issue no. – I could pull from the repo.
By the way – this seems like a pretty critical thing – event owners might be screwing up their own events by having the wrong ticket price, should this fix really wait for 4.5 ?
It is number 7035 under the beta branch. I’ve sent you an email with the commit.
—
Lorenzo
Viewing 5 reply threads
The support post ‘Ticket price gets 'rewritten' because of float sanitisation’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.