Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Sorry, cannot think of a better way to describe it. See attached screen shot for details.
On compleeting the new row and saving, the problem seems to go away, however its hard to give it to users asis.
I get the same result with teh beta1 and Dev versions. Running with field collections 7.x-1.0-beta5+1-dev
Comment | File | Size | Author |
---|---|---|---|
#2 | blank_row_appears_on_table_formatter-1990600-2.patch | 419 bytes | gcb |
Press Add then.jpg | 74.43 KB | drupauler |
Comments
Comment #1
nerdoc CreditAttribution: nerdoc commentedHere too.
This only occurs when using the table formatter.
In this tr there is created a td class="draggable odd", and then an empty td element, and the tr is closed.
This wrong row here is firstly created as row 0, when clicking on "add" again, an empty row is created as row 1 (between 0 and 2), and then (randomly?) either 0 or 1.
Comment #2
gcbThis is strange, and I'm not sure I found the root cause, but running a quick check on the theme function for this funky empty item and ignoring it works for me. Patch attached.
Comment #3
scott.browne CreditAttribution: scott.browne commentedYour patch worked great. You've saved me a great deal troubleshooting. I've already spent several hours staring at it. Thank you so much :)
Without it, most ajax functions were locked or unusable.
Comment #4
loophole080 CreditAttribution: loophole080 commentedconfirmed the patch works a treat, thanks gcb
Comment #5
bneel CreditAttribution: bneel commented+1 patch #2
Thx @gcb