$value, $name); This fixes a bug that was causing the data_content to be
stored wrongly.
}
if (!$emptyform && $recordid = data_add_record($data, $currentgroup)) { //add instance to data_record
-
+
/// Insert a whole lot of empty records to make sure we have them
$fields = get_records('data_fields','dataid',$data->id);
foreach ($fields as $field) {
$field = data_get_field_from_id($namearr[1], $data);
}
if ($field) {
- $field->update_content($rid, $value, $name);
+ $field->update_content($recordid, $value, $name);
}
}
}