Quellcode durchsuchen

Fixed bug in organism_stock template when no stocks are synced

Stephen Ficklin vor 10 Jahren
Ursprung
Commit
e8ff2cc7c0
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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')));
     }