Revision 3049fdcd
Added by Andreas Kohlbecker almost 4 years ago
modules/cdm_dataportal/includes/taxon.inc | ||
---|---|---|
484 | 484 |
|
485 | 485 |
// .. Well, for sure not as performant as before, but better than nothing. |
486 | 486 |
$synonym_uuids = array(); |
487 |
$misappied_uuids = array(); |
|
487 |
$misapplied_uuids = array();
|
|
488 | 488 |
foreach ($taxon_list as $taxon) { |
489 | 489 |
if ($taxon->class == "Synonym") { |
490 | 490 |
if (!array_key_exists($taxon->uuid, $synonym_uuids)) { |
... | ... | |
492 | 492 |
} |
493 | 493 |
} |
494 | 494 |
elseif (!_cdm_dataportal_acceptedByCurrentView($taxon)) { |
495 |
// Assuming that it is a misappied name, will be further examined below. |
|
496 |
$misappied_uuids[$taxon->uuid] = $taxon->uuid; |
|
495 |
// Assuming that it is a misapplied name, will be further examined below.
|
|
496 |
$misapplied_uuids[$taxon->uuid] = $taxon->uuid;
|
|
497 | 497 |
} |
498 | 498 |
} |
499 | 499 |
|
... | ... | |
515 | 515 |
); |
516 | 516 |
} |
517 | 517 |
|
518 |
foreach ($misappied_uuids as $relatedUuid) { |
|
518 |
foreach ($misapplied_uuids as $relatedUuid) {
|
|
519 | 519 |
$taxonRelations = cdm_ws_get(CDM_WS_PORTAL_TAXON_RELATIONS, array( |
520 | 520 |
$relatedUuid, |
521 | 521 |
)); |
Also available in: Unified diff
ref #9102 convering both cases for taxon in current classification test: TaxonNode and TaxonNodeDto