Skip to content
Snippets Groups Projects
Commit dc5b4f03 authored by Kevin Hankens's avatar Kevin Hankens
Browse files

Undefined index by kevin hankens #1119320

parent d2ba4dc3
No related branches found
No related tags found
No related merge requests found
......@@ -325,7 +325,7 @@ function tablefield_field_widget_form(&$form, &$form_state, $field, $instance, $
'#markup' => '<tr class="tablefield-row-' . $i . ' ' . $zebra . '">',
);
for ($ii = 0; $ii < $count_cols; $ii++) {
$instance_default = $instance['default_value'][$delta]['tablefield']["cell_{$i}_{$ii}"]);
$instance_default = isset($instance['default_value'][$delta]) ? $instance['default_value'][$delta]['tablefield']["cell_{$i}_{$ii}"] : array();
if (!empty($instance_default) && !empty($field['settings']['lock_values']) && $arg0 != 'admin') {
// The value still needs to be send on every load in order for the
// table to be saved correctly.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment