From 588fffb5f7541b74994132bad189abfe078341da Mon Sep 17 00:00:00 2001 From: Lacey-Anne Sanderson Date: Thu, 22 Aug 2019 15:55:30 -0600 Subject: [PATCH] Bug Fix: ensure link only made if ID was found. --- chado_custom_search/ChadoCustomSearch.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chado_custom_search/ChadoCustomSearch.inc b/chado_custom_search/ChadoCustomSearch.inc index 72b5f37..2f61793 100644 --- a/chado_custom_search/ChadoCustomSearch.inc +++ b/chado_custom_search/ChadoCustomSearch.inc @@ -290,7 +290,12 @@ class ChadoCustomSearch { $link[$key]['entity_link']['chado_table'], $r->{$link[$key]['entity_link']['id_column']} ); - $row[$key] = l($r->{$key}, '/bio_data/'.$entity_id); + if ($entity_id) { + $row[$key] = l($r->{$key}, '/bio_data/'.$entity_id); + } + else { + $row[$key] = $r->{$key}; + } } } else {