Browse Source

Small fix to linker__genotypes field

Stephen Ficklin 9 years ago
parent
commit
5afb3cf99d

+ 1 - 0
tripal/includes/TripalFieldQuery.inc

@@ -48,6 +48,7 @@ class TripalFieldQuery {
     return $this;
   }
 
+
   /**
    * Executes the query and returns results.
    *

+ 2 - 2
tripal_chado/includes/fields/chado_linker__genotype.inc

@@ -191,7 +191,7 @@ class chado_linker__genotype extends TripalField {
       ),
     );
     $record = chado_expand_var($record, 'table', $linker_table, $options);
-/* $genotype_linkers = $record->$linker_table;
+    $genotype_linkers = $record->$linker_table->$fkey_rcolumn;
     if ($genotype_linkers) {
       foreach ($genotype_linkers as $i => $genotype_linker) {
         $genotype = $genotype_linker->genotype_id;
@@ -212,6 +212,6 @@ class chado_linker__genotype extends TripalField {
           $entity->{$field_name}['und'][$i]['entity_type'] = 'TripalEntity';
         }
       }
-    } */
+    }
   }
 }