Project

General

Profile

« Previous | Next » 

Revision 2dce3b2a

Added by Andreas Kohlbecker about 4 years ago

fix #8073 showing typified name for registrations covering typifications only

View differences:

modules/cdm_dataportal/includes/name.inc
583 583
    $name_relations = cdm_ws_fetch_all(str_replace("$0", $registration_dto->nameRef->uuid, CDM_WS_PORTAL_NAME_NAME_RELATIONS));
584 584
    $render_array['name_relations'] = markup_to_render_array(render_name_relationships_of($name_relations, $registration_dto->nameRef->uuid, null, false));
585 585
    $render_array['name_relations']['#weight'] = 10;
586
  } else {
587
    // in this case the registration must have a
588
    $name = cdm_ws_get(CDM_WS_PORTAL_NAME, $registration_dto->typifiedNameRef->uuid);
589
    $render_array['typified_name'] = markup_to_render_array('<p class="typified-name">for ' . render_taxon_or_name($name) . '</p>', 40);
586 590
  }
587 591
  if(is_object($registration_dto->orderdTypeDesignationWorkingSets)) {
588 592
    $field_unit_uuids = array();

Also available in: Unified diff