Project

General

Profile

Revision 2f65af04

ID2f65af049f9784cd0b0de8096df842491c590b31
Parent 7efd13a9
Child 57dabcba

Added by Andreas Kohlbecker over 1 year ago

fix #8304 redirect from name to taxon page depending on drupal path argument, with test

View differences:

modules/cdm_dataportal/includes/name.inc
930 930
  $highlited_synonym_uuid = isset ($name->taxonBases[0]->uuid) ? $name->taxonBases[0]->uuid : '';
931 931
  if(!$show_name_cache_only){
932 932
    $relationship_markup = render_taxon_or_name($name,
933
      url(path_to_name($name->uuid, $current_taxon_uuid, $highlited_synonym_uuid))
933
      url(path_to_name($name->uuid, $current_taxon_uuid, $highlited_synonym_uuid, false))
934 934
    );
935 935
  } else {
936 936
    $relationship_markup = l(
937 937
      '<span class="' . html_class_attribute_ref($name) . '"">' . $name->nameCache . '</span>',
938
      path_to_name($name->uuid, $current_taxon_uuid, $highlited_synonym_uuid),
938
      path_to_name($name->uuid, $current_taxon_uuid, $highlited_synonym_uuid, false),
939 939
      array('html' => true)
940 940
    );
941 941
  }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)