bradfordcondon 6 жил өмнө
parent
commit
eb85f9ad83

+ 5 - 0
tripal_chado/includes/TripalFields/local__child_annotations/local__child_annotations_formatter.inc

@@ -34,6 +34,7 @@ class local__child_annotations_formatter extends ChadoFieldFormatter {
     $data = $entity->{'local__child_annotations'}['und'];
 
     if (!$data) {
+
       return;
     }
 
@@ -41,6 +42,10 @@ class local__child_annotations_formatter extends ChadoFieldFormatter {
 
       $child = $value['value'];
       // Assumption: we're on the gene entity.  We've got an array of mRNA feature ID's.
+
+      if (!$child) {
+        continue;
+      }
       $header = [
         'Feature Name',
         'Feature Type',

+ 5 - 0
tripal_chado/includes/TripalFields/local__child_properties/local__child_properties_formatter.inc

@@ -48,6 +48,11 @@ class local__child_properties_formatter extends ChadoFieldFormatter {
         'Property Value',
       ];
 
+      if (!$child) {
+        continue;
+      }
+
+
       $info = $child['info'];
       $name = $info->uniquename;
       $element[0][$i] = [