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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ppc.coder’s picture

Les Lim’s picture

Version: 7.x-2.0-beta6 » 7.x-2.x-dev
Status: Needs review » Reviewed & tested by the community

Simple and self-evident fix.

jamsilver’s picture

FileSize
792 bytes

Rolling a patch consistent with Drupal's patching conventions.

rjacobs’s picture

Just 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?

Kevin Hankens’s picture

Status: Reviewed & tested by the community » Closed (fixed)