Skip to content
Browse files

Merged fixes from HEAD

  • Loading branch information...
1 parent a7ea2d7 commit a1ecd20a199f53545dbe0589264b4b6beb9ff65b moodler committed Aug 14, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/data/import.php
View
4 mod/data/import.php
@@ -115,7 +115,7 @@
$fieldnames = array_shift($records);
foreach ($records as $record) {
- if ($recordid = data_add_record($data->id, 0)) { // add instance to data_record
+ if ($recordid = data_add_record($data, 0)) { // add instance to data_record
$fields = get_records('data_fields', 'dataid', $data->id, '', 'name, id, type');
// do a manual round of inserting, to make sure even empty contents get stored
@@ -132,7 +132,7 @@
$newfield = 'data_field_'.$field->type;
$currentfield = new $newfield($field->id);
- $currentfield->update_data_content($currentfield->id, $recordid, $value, $name);
+ $currentfield->update_content($recordid, $value, $name);
}
$recordsadded++;
}

0 comments on commit a1ecd20

Please sign in to comment.
Something went wrong with that request. Please try again.