Bläddra i källkod

Added @todo for chado prop field bug fix.

Lacey Sanderson 6 år sedan
förälder
incheckning
2b80e80f0a

+ 4 - 0
tripal_chado/includes/TripalFields/chado_linker__prop/chado_linker__prop.inc

@@ -127,6 +127,10 @@ class chado_linker__prop extends ChadoField {
 
     // Ensure there are no values if there are no properties.
     // This is necessary to make sure the field is not rendered when there are no properies.
+    // @todo: We should revisit this in the future as none of the other fields do this.
+    //        It was added here to make it easier to detect when the field was empty
+    //        but in hindsight, we would just check $entity->{$field_name}['und'][$i]['value']
+    //        in the formatter.
     if (empty($properties)) {
       unset($entity->{$field_name});
     }