Support

Home Forums Event Espresso Premium Ticket price gets 'rewritten' because of float sanitisation

Ticket price gets 'rewritten' because of float sanitisation

Posted: November 25, 2014 at 12:57 am

Viewing 5 reply threads


Jon Ang

November 25, 2014 at 12:57 am

Hi,

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)


Dean

November 25, 2014 at 3:36 am

Hi Jon,

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.


Jon Ang

November 26, 2014 at 2:20 am

Hi Dean,

Can you point me to the commit on Github that fixes this?

I’d rather much apply the actual fix than tell my client that they have to type full floats because of bugs ;(


Lorenzo Orlando Caum

  • Support Staff

November 26, 2014 at 5:01 am

Hi,

You can find the latest version of the pre-release of 4.5 here:

https://eventespresso.com/users/wingzcommunications/#ee4-pre-downloads

Keep in mind that the upcoming 4.5 is the next major release after 4.4.x which is the current platform.


Lorenzo


Jon Ang

December 1, 2014 at 9:02 pm

Hello Lorenzo,

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 ?

Cheers!


Lorenzo Orlando Caum

  • Support Staff

December 1, 2014 at 9:33 pm

Hi,

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.

Event Espresso