Browse Source

Fixed a small bug when keeping track of bulk loader inserted IDs -needed to use the returned record from tripal_core_chado_insert rather then the values array (caused by API change)

Lacey Sanderson 12 years ago
parent
commit
ca55a5a1e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tripal_bulk_loader/tripal_bulk_loader.loader.inc

+ 1 - 1
tripal_bulk_loader/tripal_bulk_loader.loader.inc

@@ -684,7 +684,7 @@ function process_data_array_for_line($priority, &$data, &$default_data, $addt) {
           $addt->nid
         ));
         if ($insert_record) {
-          $insert_record->ids_inserted .= ',' . $values[$table_desc['primary key'][0] ];
+          $insert_record->ids_inserted .= ',' . $record[$table_desc['primary key'][0] ];
           drupal_write_record('tripal_bulk_loader_inserted', $insert_record, 'tripal_bulk_loader_inserted_id');
           //print 'Update: '.print_r($insert_record,TRUE)."\n";
           //return $no_errors;