Skip to content

The word 'false' is saved in empty text repeater fields in v2.4.0 #1138

Description

@lumpysimon

This issue affects v2.4.0 but not v2.3.0

When adding new items to a repeater text field and leaving them blank, the items should not be saved. In v2.4.0 the items are saved and contain the word false. This means when displaying the field values on the front end, the word false is returned and displayed.

To reproduce:

  • Create a field with 'type' => 'text' and 'repeatable' => true
  • Add an item to the field with a value in it
  • Add a second item with no value
  • Save the post
  • The second item will contain the word false

screen shot 2018-05-25 at 09 13 35

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      Sponsor
      SponsoredKunjungi sekarang
      Promo