Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author sparkweb

    (@sparkweb)

    Hi Martin,

    Please change line 566 of the plugin file to:

    if ($new_data === "") $new_data = NULL;

    and give that a try. It currently reads:

    if (!$new_data || $new_data === "") $new_data = NULL;

    Which would delete the record if it was empty and 0 evaluates as empty. If that works for you, I think I’d be okay with changing this in the plugin.

    OP hasn’t replied to your solution, but since I had the exact same question, I tried it. And just to let you know, it works exactly as expected. So if you could include this in a future version, that would be great.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Field value "0" (Zero) is ignored’ is closed to new replies.