Browse Source

Fixed bug in generate_vars function that kept FK fields from expanding if a form FK field was null

spficklin 12 years ago
parent
commit
a5ec42d068
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tripal_core/api/tripal_core.api.inc

+ 1 - 1
tripal_core/api/tripal_core.api.inc

@@ -1555,7 +1555,7 @@ function tripal_core_generate_chado_var($table, $values, $base_options = array()
             // the table referenced by the foreign key
             //Dont do anything if the foreign key is empty
             if (empty($object->{$foreign_key})) {
-              break;
+              continue;
             }
             // get the record from the foreign table
             $foreign_values = array($primary_key => $object->{$foreign_key});