Explorar el Código

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

spficklin hace 12 años
padre
commit
a5ec42d068
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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});