Steps to reproduce

1. Create simple 2-columns page of type Bricky:
Create

2. Remove second item:
Remove

3. As a result tree of entities broken:
Broken

Proposed resolution

It looks like some JS error, probably caused by wrong form elements generation for deleted items.

Comments

tonystar created an issue. See original summary.

anton-staroverov’s picture

Assigned: Unassigned » mohit_aghera
anton-staroverov’s picture

And here is JS console output:

Uncaught TypeError: Cannot read property 'colSpan' of undefined
    at HTMLTableRowElement.<anonymous> (js_s55VDDOeO16zFrsfHbvKPTmjkxck9cxyB63rpSoa_20.js:1920)
    at Function.each (js_s55VDDOeO16zFrsfHbvKPTmjkxck9cxyB63rpSoa_20.js:2)
    at n.fn.init.each (js_s55VDDOeO16zFrsfHbvKPTmjkxck9cxyB63rpSoa_20.js:2)
    at Drupal.tableDrag.initColumns (js_s55VDDOeO16zFrsfHbvKPTmjkxck9cxyB63rpSoa_20.js:1888)
    at new Drupal.tableDrag (js_s55VDDOeO16zFrsfHbvKPTmjkxck9cxyB63rpSoa_20.js:1834)
    at initTableDrag (js_s55VDDOeO16zFrsfHbvKPTmjkxck9cxyB63rpSoa_20.js:1641)
    at Object.attach (js_s55VDDOeO16zFrsfHbvKPTmjkxck9cxyB63rpSoa_20.js:1647)
    at Object.Drupal.attachBehaviors (js_s55VDDOeO16zFrsfHbvKPTmjkxck9cxyB63rpSoa_20.js:215)
    at Drupal.AjaxCommands.insert (js_s55VDDOeO16zFrsfHbvKPTmjkxck9cxyB63rpSoa_20.js:5351)
    at Drupal.Ajax.success (js_s55VDDOeO16zFrsfHbvKPTmjkxck9cxyB63rpSoa_20.js:5131)
anton-staroverov’s picture

  • tonystar committed 44ee858 on 8.x-1.x
    Issue #2866294 by tonystar: Removing the item breaks the tree of...
anton-staroverov’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.