Browse Source

Working on supporting linker tables (xxxx_dbxref)

Stephen Ficklin 9 years ago
parent
commit
275f7b1f1a

+ 1 - 1
tripal_chado/includes/fields/dbxref.inc

@@ -56,7 +56,7 @@ function tripal_chado_dbxref_widget(&$widget, $form, $form_state, $field,
 
   // Get the field defaults.
   $record_id = '';
-  $fkey_value = '';
+  $fkey_value = $element['#entity']->chado_record_id;
   $dbxref_id = '';
   $db_id = '';
   $accession = '';

+ 1 - 1
tripal_chado/includes/tripal_chado.field_storage.inc

@@ -36,7 +36,7 @@ function tripal_chado_field_storage_write($entity_type, $entity, $op, $fields) {
 
   // Convert the fields into a key/value list of fields and their values.
   $field_vals = tripal_chado_field_storage_unnest_fields($fields, $entity_type, $entity);
-dpm($field_vals);
+
   // Recursively write fields for the base table.
   $record_id = tripal_chado_field_storage_write_recursive($entity_type, $entity, $term,
       $op, $field_vals, $base_table, $base_table, $type_field, $record_id);