function tablefield_field_is_empty($item, $field) {
...
$count_rows = $item['tablefield']['rebuild']['count_rows'];
...
}
content of $item

tested on form submit. As result field treated empty and $items array of tablefield_field_presave($entity_type, $entity, $field, $instance, $langcode, &$items) is empty and nothing is saving
Notice: Undefined index: rebuild in tablefield_field_is_empty() (line 486 of /var/www/extranet/sites/all/modules/tablefield/tablefield.module).
Drupal core - 7.58
What should be
$count_rows = 0;
if(isset($item['tablefield']['rebuild'])) {
$count_rows = $item['tablefield']['rebuild']['count_rows'];
} else {
$count_rows = count($item['tablefield']['tabledata']);
}
Comments
Comment #2
mykola dolynskyiComment #3
lolandese commentedThanks for reporting. Can you supply this as a patch for the latest dev version so I can test and possibly commit it with attribution to you?
Comment #4
lolandese commentedCritical is for bugs that make a module completely useless. It is a major bug though as revisions should work. See https://www.drupal.org/node/45111 for more info.
Comment #5
mykola dolynskyi@lolandese thank you for fast reaction.
I dont know how to supply patches/gits in drupal.org environment.
Basically line
in body of function tablefield_field_is_empty($item, $field)
should be replaced with
Comment #6
lolandese commentedHere is a patch with your suggested code change.
Can you please replace the issue title with something that describes the issue. Furthermore, please provide some steps to reproduce that issue in the dev version. I can't get to provoke the undefined error, so I am unable to test. See https://www.drupal.org/issue-queue/how-to.
Comment #7
lolandese commentedStatus correction.
Comment #8
mykola dolynskyiComment #9
mykola dolynskyi@lolandese
1. changed the title. OK this way?
2. try to
Comment #10
liam morlandDrupal 7 is no longer supported. If this applies to a supported version, please re-open.