Additional Fields Add-on: "0" not getting saved as actual input

Home Forums Calendar Products Events Calendar PRO Additional Fields Add-on: "0" not getting saved as actual input

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1100787
    Zach Cheatham
    Participant

    Hi we are using the Additional Fields add-on as a way to display athletic scores on a high school website. It’s been working fine up until we just recently upgraded the plugins on the site… now, whenever we save a score as ‘0’ and update the event, it clears the input field, treating it as ’empty’ instead of the numeric ‘zero’. The field is a text input, and was working fine previous to the latest updates.

    We will implement a fix in the meantime to treat empty fields as a ‘zero’ but I think this may be a bug you want to address in case people have similar use cases for this add-on.

    Thanks!

    Zach

    #1100859
    George
    Participant

    Sorry to hear this, Zach!

    I will investigate to see if this is indeed a bug in our code, which seems to be the case. The good news—relatively—is that bugs like this are usually rather quick to fix, so we’ll do that as soon as possible.

    In the meantime, I’m wondering—would you be able to share a screenshot of your custom field’s configuration? I just mean the literal screen in your wp-admin where you have added/configured the Additional Field.

    You can do so by uploading the screenshot to Imgur.com, Flickr.com, CloudUp.com, or any similar image-hosting site; then just share the links to those images here and I’ll take a look.

    Thank you!
    George

    #1100871
    Zach Cheatham
    Participant

    Absolutely! Here you go: http://grab.by/PoBc

    FYI – in the meantime I just updated our theme code to check if the ‘score’ fields are empty and if so, so assume a ‘0’ in its place. What I’m seeing is that 0 isn’t even being saved to the event, it’s actually just clearing the field whenever I update the event with a 0 in that field.

    #1101057
    George
    Participant

    Thanks for this! I’ve confirmed the bug and made a bug ticket; we’ll hopefully be able to resolve this quickly. Stay tuned for the upcoming releases!

    Thank you,
    George

    #1107194
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

    #1130680
    Geoff
    Member

    Hey there,

    Just want to drop a quick note in here to let you know that Events Calendar PRO 4.2.1 is now available and it includes a patch for this issue. Please update and let us know if you continue to hit any trouble.

    Thanks so much for your patience while we worked on this!

    Cheers,
    Geoff

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Additional Fields Add-on: "0" not getting saved as actual input’ is closed to new replies.