Project

General

Profile

« Previous | Next » 

Revision f5c014af

Added by Andreas Kohlbecker over 3 years ago

ref #8543 unification of annotation and source footnotes for related taxa etc. - fixing typo in array key

View differences:

modules/cdm_dataportal/includes/taxon.inc
438 438
    '',
439 439
    RenderHints::getFootnoteListKey()
440 440
  );
441
  $footnotes = $annotations_and_sources_taxon['foo_note_keys'] .
442
    ($annotations_and_sources_taxon['foo_note_keys'] && $annotations_and_sources_name['foo_note_keys'] ? ',' : '') .
443
    $annotations_and_sources_name['foo_note_keys'];
441
  $footnotes = $annotations_and_sources_taxon['foot_note_keys'] .
442
    ($annotations_and_sources_taxon['foot_note_keys'] && $annotations_and_sources_name['foot_note_keys'] ? ',' : '') .
443
    $annotations_and_sources_name['foot_note_keys'];
444 444
  return $footnotes;
445 445
}
446 446

  
src/test/java/eu/etaxonomy/dataportal/selenium/tests/cichorieae/Cichorieae_FootnoteTest.java
41 41
    public void crepidiastrum_chelidoniifolium_issue_2772() throws MalformedURLException {
42 42
        TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), crepidiastrum_chelidoniifolium_uuid);
43 43
        String expectedName = "Crepidiastrum chelidoniifolium";
44
        assertEquals(getContext().prepareTitle(expectedName), p.getTitle());
44
        assertEquals(getContext().prepareTitle(expectedName), driver.getTitle());
45 45

  
46 46
        assertEquals("expecting one footnoteKey", 1, p.getHeterotypicalGroupFootNoteKeys(2).size());
47 47
        List<BaseElement> footNotes = p.getHeterotypicalGroupFootNotes(2);

Also available in: Unified diff