Browse Source

Fix so__genotype->load($entity)

Implement the fix to so__genotype->load($entity) as described in #980.
par12005 5 years ago
parent
commit
d6cba7040b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tripal_chado/includes/TripalFields/so__genotype/so__genotype.inc

+ 2 - 2
tripal_chado/includes/TripalFields/so__genotype/so__genotype.inc

@@ -144,7 +144,7 @@ class so__genotype extends ChadoField {
       ],
     ];
     $record = chado_expand_var($record, 'table', $linker_table, $options);
-    $genotype_linkers = isset($record->$linker_table->$fkey_rcolumn) ? $record->$linker_table->$fkey_rcolumn : '';
+    $genotype_linkers = $record->$linker_table;
     if ($genotype_linkers) {
       foreach ($genotype_linkers as $i => $genotype_linker) {
         $genotype = $genotype_linker->genotype_id;
@@ -166,4 +166,4 @@ class so__genotype extends ChadoField {
     }
   }
 
-}
+}