Problem/Motivation

The jQuery selector string used in the ajax_command_replace() call for replacing the ERVW widget table with updated values is too generic. It selects all <tbody> children elements. The selected entity IDs to be replaced may contain table HTML markup themselves, e.g. when extending the module behavior and displaying tabular content instead of the entity label. The result this case is the unexpected removal of the table body.

Proposed resolution

Use the ">" child combinator inside the ajax_command_replace() call.

Comments

dstotijn’s picture

Status: Active » Needs review
StatusFileSize
new934 bytes
dstotijn’s picture

Issue summary: View changes
jsacksick’s picture

Status: Needs review » Fixed

Thanks, committed.

jsacksick’s picture

Status: Needs review » Fixed

Thanks, committed.

  • jsacksick committed 58d4673 on 7.x-2.x authored by dstotijn
    Issue #2317949 by dstotijn: Make the jQuery selector string for ajax...

Status: Fixed » Closed (fixed)

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