Browse Source

One last fix. Removed a now unecessary bit of code from the publication field.

Stephen Ficklin 6 years ago
parent
commit
94e694018f

+ 0 - 6
tripal_chado/includes/TripalFields/schema__publication/schema__publication.inc

@@ -144,12 +144,6 @@ class schema__publication extends ChadoField {
       }
     }
 
-    // Ensure we don't have a value if there are no publications.
-    // This is needed due to stubbing out the field above.
-    if (sizeof($pubs) == 0) {
-      unset($entity->{$field_name});
-    }
-
     $i = 0;
     foreach ($pubs as $pub_id => $pub) {
       $pub_details = chado_get_minimal_pub_info($pub);