Revision 7635cc7d
ref #6201 fixing problem related to changes in taxon/{uuid}/accepted service
modules/cdm_dataportal/cdm_dataportal.module | ||
---|---|---|
1736 | 1736 |
$singleTaxon = array_pop($taxon_pager->records); |
1737 | 1737 |
if ($singleTaxon->class != "Taxon") { |
1738 | 1738 |
// It is a Synonym -> look for the accepted. |
1739 |
$accepted_taxa = cdm_ws_get(CDM_WS_PORTAL_TAXON_ACCEPTED, array($singleTaxon->uuid), 'classificationFilter=' . get_current_classification_uuid());
|
|
1739 |
$accepted_taxon = cdm_ws_get(CDM_WS_PORTAL_TAXON_ACCEPTED, array($singleTaxon->uuid), 'classificationFilter=' . get_current_classification_uuid());
|
|
1740 | 1740 |
if (!empty($highlite_synonym_uuid)) { |
1741 |
drupal_goto('cdm_dataportal/taxon/' . $accepted_taxa[0]->uuid . '/synonymy', array('query' => array('highlite' => $highlite_synonym_uuid)));
|
|
1741 |
drupal_goto('cdm_dataportal/taxon/' . $accepted_taxon->uuid . '/synonymy', array('query' => array('highlite' => $highlite_synonym_uuid)));
|
|
1742 | 1742 |
} |
1743 | 1743 |
else { |
1744 |
drupal_goto('cdm_dataportal/taxon/' . $accepted_taxa[0]->uuid . '/synonymy', array('query' => array('highlite' => $singleTaxon->uuid)));
|
|
1744 |
drupal_goto('cdm_dataportal/taxon/' . $accepted_taxon->uuid . '/synonymy', array('query' => array('highlite' => $singleTaxon->uuid)));
|
|
1745 | 1745 |
} |
1746 | 1746 |
} |
1747 | 1747 |
else { |
Also available in: Unified diff