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.
Been getting this error when ever I go to view a relation I set up that contains a tablefield:
Notice: Undefined index: rebuild in tablefield_rationalize_table() (line 595 of/home/dm7/sites/cscb.ca/modules/contrib/tablefield/tablefield.module).
Notice: Undefined index: rebuild in tablefield_rationalize_table() (line 596 of/home/dm7/sites/cscb.ca/modules/contrib/tablefield/tablefield.module).
It looks like the argument passed into the function is empty so I moved the code that tries to look up the row/column counts inside the check for !empty($tablefield).
Comment | File | Size | Author |
---|---|---|---|
#3 | tablefield-1542446-03.patch | 792 bytes | jamsilver |
#1 | tablefield-undefined_index_error_in_table_rationalize-1542446-1.patch | 900 bytes | ppc.coder |
Comments
Comment #1
ppc.coder CreditAttribution: ppc.coder commentedHere's the patch:
Comment #2
Les LimSimple and self-evident fix.
Comment #3
jamsilver CreditAttribution: jamsilver commentedRolling a patch consistent with Drupal's patching conventions.
Comment #4
rjacobs CreditAttribution: rjacobs commentedJust wanted to include another confirming review. Some testing and a code-level scan confirms this addresses the problem noted. This has been RTBC for quite a while now, is there anything standing in the way of a commit on this?
Comment #5
Kevin Hankens CreditAttribution: Kevin Hankens commentedSorry for the late reply, thanks for the fix!!
http://drupalcode.org/project/tablefield.git/commit/2ae9de778fa2c036ae03...