Bladeren bron

Fixed a typo in the expression

Stephen Ficklin 6 jaren geleden
bovenliggende
commit
177bbaa528
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      tripal_chado/includes/tripal_chado.fields.inc

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

@@ -464,7 +464,8 @@ function tripal_chado_bundle_fields_info_custom(&$info, $details, $entity_type,
   }
 
   // Protocol.
-  if ($table_name == 'protocol' and array_key_exists('protocol_id', $schema['fields'])) {
+  if ($table_name != 'protocol' and 
+      array_key_exists('protocol_id', $schema['fields'])) {
     $field_name = 'sep__protocol';
     $field_type = 'sep__protocol';
     $info[$field_name] = array(