Bug #23232 Duplicate

Grid text input with Allowed content set to Number or Integer doesn’t retain 0

Version: 3.5.11 Reporter: Louis D.

Hi,

I’ve setup a grid field. Inside that grid field, I have a Text input field. When setting the Allowed Content to Number or Integer, the field doesn’t retain 0.

In the entry, I can enter 0 in the field, save the entry, that goes fine. But when editing the entry again, the 0 disappears.

  • Duplicate of #22800

    Derek Jones
    19th September, 2017 at 4:01pm
  • Didn’t see that one. Thanks, too bad it won’t be fixed until v4.

    Louis D.
    19th September, 2017 at 4:48pm
  • Yeah we don’t want to break behavior by a patch release if someone is relying on that buggy behavior. If you are fine maintaining the tiniest of hacks, system/ee/EllisLab/Addons/text/ft.text.php, line 491 change from:

    if ($data == NULL)

    to:

    if ($data === NULL)
    Derek Jones
    19th September, 2017 at 5:27pm

You must be signed in to comment on a bug report.

ExpressionEngine News

#eecms, #events, #releases