Can't remove last item in cloneable group

Support MB Group Can't remove last item in cloneable groupResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36952
    ArnoArno
    Participant

    Hi,

    I have a cloneable group. It is sortable and "clone default value" is enabled. The sub fields are of the type URL, Text and Select (none are required).

    If I add two items (with each 3 fields), I can only remove one of them. The last one does not give me the red Remove link.

    #36965
    Long NguyenLong Nguyen
    Moderator

    Hi,

    The cloneable field will have a least 1 item to fill the value. It is not possible to remove all items.

    #36970
    ArnoArno
    Participant

    O yes, I see that now. Even a new post will have at least one group of fields, even if nothing was filled out yet. So, if processing a group, we should always check for a group of fields without a value, or with a default value.

    I'm not sure if this makes sense. For example: the post is a Product, and the cloneable group is possible Discounts. Then there's always at least one discount, with empty fields, even if the Product is not discounted.

    It's unexpected, but good to know it works this way 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.