소스 검색

Fixes to bundle class

Stephen Ficklin 7 년 전
부모
커밋
5ecb41f562
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      tripal/includes/TripalBundle.inc

+ 3 - 3
tripal/includes/TripalBundle.inc

@@ -7,8 +7,8 @@ class TripalBundle extends Entity {
   public function __construct($values = array(), $entity_type) {
     parent::__construct($values, $entity_type);
 
-    $this->term = tripal_load_term_entity(array('term_id' => $bundle->term_id));
-    $vocab = $term->vocab;
-    $this->accession = $vocab->vocabulary . ':' . $term->accession;
+    $this->term = tripal_load_term_entity(array('term_id' => $this->term_id));
+    $vocab = $this->term->vocab;
+    $this->accession = $vocab->vocabulary . ':' . $this->term->accession;
   }
 }