소스 검색

Added @todo for chado prop field bug fix.

Lacey Sanderson 6 년 전
부모
커밋
2b80e80f0a
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      tripal_chado/includes/TripalFields/chado_linker__prop/chado_linker__prop.inc

+ 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});
     }