소스 검색

Fixed bug in organism_stock template when no stocks are synced

Stephen Ficklin 10 년 전
부모
커밋
e8ff2cc7c0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tripal_stock/theme/templates/tripal_organism_stocks.tpl.php

+ 1 - 1
tripal_stock/theme/templates/tripal_organism_stocks.tpl.php

@@ -47,7 +47,7 @@ if (count($stocks) > 0) { ?>
     if (!$name) {
       $name = $stock->uniquename;
     }
-    if (property_exists($node, 'nid')) {
+    if (property_exists($stock, 'nid')) {
       $name = l($name, "node/$stock->nid", array('attributes' => array('target' => '_blank')));
     }