Skip to content

Commit

Permalink
Show stock uniquenames instead of name on feature page
Browse files Browse the repository at this point in the history
  • Loading branch information
chunhuaicheng committed Jun 21, 2018
1 parent d7855d3 commit 424662c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theme/templates/feature/mainlab_feature_stocks.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$stk = chado_generate_var('stock', array('stock_id' => $stock->stock_id->stock_id));

$link = mainlab_tripal_link_record('stock', $stk->stock_id);
$name = $stk->name ? $stk->name : $stk->uniquename;
$name = $stk->uniquename ? $stk->uniquename : $stk->name;

$rows[] = array(
$link ? "<a href='$link'>" . $name . '</a>': $name,
Expand Down

0 comments on commit 424662c

Please sign in to comment.