Project

General

Profile

Revision e95b14dd

IDe95b14dd69e2f28333bea37bbccc6f84cdeefc59
Parent 92e522db
Child 209feb13

Added by Andreas Kohlbecker 9 months ago

ref #8739 loading missing name for taxa in render_taxon_or_name()

View differences:

modules/cdm_dataportal/includes/name.inc
279 279
  $is_doubtful = false;
280 280

  
281 281
  if($taxon_name_or_taxon_base->class == 'Taxon' || $taxon_name_or_taxon_base->class == 'Synonym'){
282
    $taxonName = $taxon_name_or_taxon_base->name;
282
    if(isset($taxon_name_or_taxon_base->name)){
283
      $taxonName = $taxon_name_or_taxon_base->name;
284
    } else {
285
      $taxonName = cdm_ws_get(CDM_WS_TAXON . '/$0/name', array($taxon_name_or_taxon_base->uuid));
286
    }
283 287
    $is_doubtful = $taxon_name_or_taxon_base->doubtful;
284 288
    // use the TaxonBase.tagged_title so we have the secRef
285 289
    $tagged_title = $taxon_name_or_taxon_base->taggedTitle;

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)