diff --git a/webform_entity.module b/webform_entity.module index 12ee197fceb1149049599ee061248f37e7d50df4..30ee9d1a9be7e5c7a3d400e1377a810f9180171e 100644 --- a/webform_entity.module +++ b/webform_entity.module @@ -1153,7 +1153,6 @@ function webform_entity_preprocess_webform_components_form(&$variables) { */ function webform_entity_form_webform_components_submit(&$form, &$form_state) { $components = $form_state['values']['components']; - $instances = field_info_instances('webform_submission_entity', $form['#node']->type); $data = array(); $result = db_query("SELECT webform_entity_data FROM {webform} WHERE nid = :nid", array(':nid' => $form['#node']->nid))->fetchField(); if ($result) { @@ -1161,8 +1160,6 @@ function webform_entity_form_webform_components_submit(&$form, &$form_state) { } foreach ($components as $cid => $component) { if (isset($component['webform_entity'])) { - $key = substr($cid, 6); - $instance = $instances[$key]; $data[$cid] = array( 'weight' => $component['weight'], 'pid' => $component['pid'],