Project

General

Profile

« Previous | Next » 

Revision e95b14dd

Added by Andreas Kohlbecker about 4 years 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