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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | entityreference_view_widget-fix_table_update-2317949.patch | 934 bytes | dstotijn |
Comments
Comment #1
dstotijn commentedComment #2
dstotijn commentedComment #3
jsacksick commentedThanks, committed.
Comment #4
jsacksick commentedThanks, committed.