Skip to content

Commit

Permalink
Taxon Profile bug
Browse files Browse the repository at this point in the history
- Dynamic occurrence link failing to return synonyms
  • Loading branch information
egbot committed Oct 22, 2021
1 parent 7889e56 commit 84210de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/TaxonProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ public function getSearchByTaxon($limitRank = 170, $collidStr = 'all', $limitOcc
$numOccs = $this->getOccTaxonInDbCnt($limitRank, $collidStr);
$occMsg = '';
if ((1 <= $numOccs) && ($numOccs <= $limitOccs)) {
$occSrcUrl = '../collections/list.php?includeothercatnum=1&usethes=1&taxa='.$this->taxonName;
$occSrcUrl = '../collections/list.php?usethes=1&taxa='.$this->tid;
if($collidStr != 'all') $occSrcUrl .= '&db='.$collidStr;
$occMsg = '<a class="btn" href="'.$occSrcUrl.'" target="_blank">Explore '.number_format($numOccs).' occurrences</a>';
} elseif ($numOccs > $limitOccs) {
Expand Down
2 changes: 1 addition & 1 deletion taxa/resourcetab.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
if($occNum > -1){
$occMsg = number_format($occNum).' '.(isset($LANG['OCCURRENCES'])?'occurrences':'');
if($occNum){
$occHref = '../collections/list.php?includeothercatnum=1&taxa='.$taxonManager->getTaxonName();
$occHref = '../collections/list.php?usethes=1&taxa='.$tid;
$occMsg = '<a class="btn" href="'.$occHref.'" target="_blank">'.$occMsg.'</a>';
}
echo '<li>'.$occMsg.'</li>';
Expand Down

0 comments on commit 84210de

Please sign in to comment.