Problem/Motivation

I'm using Panelizer module and custom ctools blocks were I have "mutli-value" field.
Panelizer adds blocks using Ajax.
So when I try to remove first (or next item but not the last) by making all fields empty the last item values are duplicated.

Steps to reproduce

Before item removal:
block_after_item_removal.png

After item removal:
block_after_item_removal.png

Proposed resolution

Cause of the issue is with "multi-value" element and #input in form_state.

I think the same issue is with 1.0.0-beta2.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

deimos created an issue. See original summary.

deimos’s picture

Issue summary: View changes

deimos’s picture

Attach patch file.

deimos’s picture

Assigned: deimos » Unassigned
Status: Needs work » Needs review
a.milkovsky’s picture

Status: Needs review » Reviewed & tested by the community

The patch fixed the form-rebuild problem in our project.

sardara’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs tests

It needs tests before RTBC.